|
Re: Running without console does not work [message #63388 is a reply to message #63291] |
Mon, 13 March 2006 02:07 |
Eclipse User |
|
|
|
Originally posted by: pascal.ibm.canada
You need to specify -noExit on the command line, however I'm surprised
because I think the behaviour you were expectng should be the default
in org.eclipse.osgi 3.2.
Andreas Ronge wrote:
> Hi
>
> java -jar org.eclipse.osgi.jar only works with the -console switch.
> Without the -console it will just exist.
>
> When we add the knopflerfish console bundle instead of the built in
> equinox console it will exit after aprox. 30 sec when running in the PDE.
> Maybe because there is no activity ?
>
> So, how can we run equinox with a different console ?
> Who decides when equinox should be shut down ?
>
> /Andreas
>
|
|
|
Re: Running without console does not work [message #63498 is a reply to message #63291] |
Tue, 14 March 2006 23:05 |
Eclipse User |
|
|
|
Originally posted by: simon.kaegi.cognos.com
Hi Andreas,
The thread used to call EclipseStarter main(...) will just return if there
is no application (as in "-application" ) to run.
"-console" creates a new thread so that's why the process isn't stopped and
the framework continues to be accessible.
If you want to run the Knopflerfish console you're going to have to take
control of the lifecycle yourself.
You can do this in a different ways: (these are off the top of my head
so...)
1) Create an application extension that let's you control the platform
lifecycle.
2) Launch Equinox yourself in your own thread using EclipseStarter.run(...)
[-noExit and eclipse.ignoreApp may be relevant]
3) Create and start a bundle that launches a lifecycle management thread
Just to get things up and running I've used
"eclipse.application.noDefault=true".
This will cause the framework to wait for an application to register.
Since in your case no app is coming you'll have to interrupt the process to
exit but it might get you up and running at least.
-Simon
"Andreas Ronge" <andreas.ronge@jayway.se> wrote in message
news:45447e25345fdce4a4b76ee4f66c6954$1@www.eclipse.org...
> Hi
>
> java -jar org.eclipse.osgi.jar only works with the -console switch.
> Without the -console it will just exist.
>
> When we add the knopflerfish console bundle instead of the built in
> equinox console it will exit after aprox. 30 sec when running in the PDE.
> Maybe because there is no activity ?
>
> So, how can we run equinox with a different console ?
> Who decides when equinox should be shut down ?
>
> /Andreas
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03263 seconds