Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Starting Eclipse Commandline With Equinox Launcher"
(New page: Launching Eclipse with the new Equinox jar is as easy as <b style="color:darkgreen">A</b>, <b style="color:orange">B</b>, <b style="color:darkred">C</b>. === <b style="color:darkgreen">A<...) |
m (add categories) |
||
Line 44: | Line 44: | ||
echo Using %EQUINOXJAR% to start up Eclipse... | echo Using %EQUINOXJAR% to start up Eclipse... | ||
java -jar %EQUINOXJAR% org.eclipse.equinox.launcher.Main ... | java -jar %EQUINOXJAR% org.eclipse.equinox.launcher.Main ... | ||
+ | |||
+ | [[Category:Releng]] [[Category:Equinox]] [[Category:Java]] |
Revision as of 22:48, 12 March 2007
Launching Eclipse with the new Equinox jar is as easy as A, B, C.
Ant Script
<!-- set path to eclipse folder. If local folder, use '.'; otherwise, use c:\path\to\eclipse or /path/to/eclipse/ --> <property name="eclipse.home" value="."/> <!-- get path to equinox jar inside ${eclipse.home} folder (copy/rename actual jar) --> <copy tofile="${eclipse.home}/eclipse/plugins/org.eclipse.equinox.launcher.jar"> <fileset dir="${eclipse.home}/eclipse/plugins" includes="**/org.eclipse.equinox.launcher_*.jar"/> </copy> <!-- start Eclipse w/ java --> <java classpath="${eclipse.home}/eclipse/plugins/org.eclipse.equinox.launcher.jar" .../>
Bash Shell Script
#!/bin/bash # set path to eclipse folder. If local folder, use '.'; otherwise, use /path/to/eclipse/ eclipsehome="."; # get path to equinox jar inside $eclipsehome folder cp=$(find $eclipsehome -name "org.eclipse.equinox_*.jar" | sort | tail -1); # start Eclipse w/ java /opt/java50/bin/java -cp $cp org.eclipse.equinox.launcher.Main ...
Cmd/Bat Script
Save this as eclipse.cmd. This has been tested with Windows XP Home Edition only.
@echo off :: set path to eclipse folder. If local folder, use '.'; otherwise, use c:\path\to\eclipse set ECLIPSEHOME=. :: get path to equinox jar inside ECLIPSEHOME folder for /f "delims= tokens=1" %%c in ('dir %ECLIPSEHOME%\plugins /b /s org.eclipse.equinox_*.jar') do set EQUINOXJAR=%%c :: start Eclipse w/ java echo Using %EQUINOXJAR% to start up Eclipse... java -jar %EQUINOXJAR% org.eclipse.equinox.launcher.Main ...