|
Re: RCP/Equinox Console App Launcher on Linux [message #96598 is a reply to message #96580] |
Wed, 05 September 2007 10:09 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
I seem to recall that there's an enhancement request to do that. However, you can launch java -jar plugins/org.eclipse.launcher.jar or some such instead of eclipse to bring it up without the UI. All the launcher executable does is create a VM and dialog window for splash screens etc. that you can run with the java -jar without needing (though you might need to have -noSplash as well).
Alex.
|
|
|
|
|
|
|
Re: RCP/Equinox Console App Launcher on Linux [message #97079 is a reply to message #96580] |
Tue, 11 September 2007 15:47 |
Eclipse User |
|
|
|
Originally posted by: christian.wagner.diligent-it.com
Hi all,
we have our application installed on a unix operating system without any window system (gtk/motif) and start it by calling "java -jar org.eclipse.osgi_3.3.0.v20070530.jar". This works fine.
On certain conditions (e.g. after an update), the application should be restarted and therefore we return IApplication.EXIT_RESTART in the start method's implementation of IApplication. IApplication.EXIT_RESTART would be Integer(23) and the idea would be to check for this exit code in the starter script and restart the application. However, the JVM always exits with exit code 0.
Browsing through the EclipseStarter class one can see that the main class does not set any exit code (unlike e.g. the main of org.eclipse.equinox.launcher.Main).
My question now is how - if at all - it is possible to retreive an exit code other than 0 by starting an application with "java -jar org.eclipse.osgi_3.3.0.v20070530.jar". Or does the exit code in this case have to be set programmatically?
Cheers,
Christian
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05036 seconds