[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Headless eclipse ava.lang.ClassNotFoundException: org.eclipse.core.launcher.Main

see http://wiki.eclipse.org/Starting_Eclipse_Commandline_With_Equinox_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..