Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Headless eclipse ava.lang.ClassNotFoundException: org.eclipse.core.launcher.Main
Headless eclipse ava.lang.ClassNotFoundException: org.eclipse.core.launcher.Main [message #330190] Fri, 18 July 2008 11:59 Go to next message
Eclipse UserFriend
Hi,
I know in the old framework, you would use something like
java -cp <eclipse_dir>\startup.jar org.eclipse.core.launcher.Main
-application ....

but i think this has changed since equinox framework and there is no
longer startup.jar. So whats the correct way then..
Re: Headless eclipse ava.lang.ClassNotFoundException: org.eclipse.core.launcher.Main [message #330191 is a reply to message #330190] Fri, 18 July 2008 12:03 Go to previous messageGo to next message
Eclipse UserFriend
Is it:
java" -cp <eclipse_dir>\plugins\org.eclipse.equinox.launcher_<version >.jar
org.eclipse.equinox.launcher.Main -application ...

but the problem with this is that if I do it in the script, the user would
have to edit the script to point to the right version of launcher plugin
while before when we used the startup.jar, no such thing was required..so
is there a better way??
Re: Headless eclipse ava.lang.ClassNotFoundException: org.eclipse.core.launcher.Main [message #330192 is a reply to message #330190] Fri, 18 July 2008 12:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fireresq.embarqmail.com

see http://wiki.eclipse.org/Starting_Eclipse_Commandline_With_Eq uinox_Launcher

this is a way in Ant to run eclipse and handle starting a 3.3 or grater and a 3.2 or less
<!-- determine if this is 3.3 or 3.2 and set the startup jar file -->
<fileset dir="${eclipse-home}/plugins" id="equinox.jar.fs"
includes="org.eclipse.equinox.launcher_*.jar"/>
<pathconvert property="equinox.jar" refid="equinox.jar.fs" setonempty="false"/>
<available file="${eclipse-home}/startup.jar" type="file"
property="eclipse.startup"
value="${eclipse-home}/startup.jar"/>
<property name="eclipse.startup" value="${equinox.jar}" />
<echo message="Running eclipse using eclipse startup ${eclipse.startup}" />


Raheel Ashraf wrote:
> Hi,
> I know in the old framework, you would use something like
> java -cp <eclipse_dir>\startup.jar org.eclipse.core.launcher.Main
> -application ....
>
> but i think this has changed since equinox framework and there is no
> longer startup.jar. So whats the correct way then..
>
Re: Headless eclipse ava.lang.ClassNotFoundException: org.eclipse.core.launcher.Main [message #330193 is a reply to message #330191] Fri, 18 July 2008 12:06 Go to previous message
Eclipse UserFriend
Originally posted by: fireresq.embarqmail.com

in see http://wiki.eclipse.org/Starting_Eclipse_Commandline_With_Eq uinox_Launcher it shows you haw to do it from a script

Raheel Ashraf wrote:
> Is it:
> java" -cp
> <eclipse_dir>\plugins\org.eclipse.equinox.launcher_<version >.jar
> org.eclipse.equinox.launcher.Main -application ...
>
> but the problem with this is that if I do it in the script, the user
> would have to edit the script to point to the right version of launcher
> plugin while before when we used the startup.jar, no such thing was
> required..so is there a better way??
>
Previous Topic:Creating an Indeterminate ProgressBar for Duration of a Function call
Next Topic:Attach Editor Plugin to RCP
Goto Forum:
  


Current Time: Thu May 01 22:17:47 EDT 2025

Powered by FUDForum. Page generated in 0.04035 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top