Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Running without console does not work
Running without console does not work [message #63291] Wed, 08 March 2006 08:05 Go to next message
Andreas Ronge is currently offline Andreas RongeFriend
Messages: 4
Registered: July 2009
Junior Member
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 #63388 is a reply to message #63291] Mon, 13 March 2006 02:07 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: Running without console does not work [message #64320 is a reply to message #63498] Sun, 02 April 2006 09:10 Go to previous message
Stepan Rutz is currently offline Stepan RutzFriend
Messages: 52
Registered: July 2009
Member
Hi,

in the scenarios where i use equinox standalone, i dont have an
application, this seems to be too orthogonal to a framework in which
bundles more or less coexist in a loosely coupled way.

I start equinox with

-noExit

and

-Declipse.ignoreApp=true

which means no application is looked up via the "eclipse.application"
service.

I do use swing in my examples, so that launches an awt event dispatcher
thread. If no thread was launched osgi would exit for me too, even if i
set -noExit.

Hope this helps,
Stepan
Previous Topic:Eclipse framework with multiple plugin support
Next Topic:RCP vs equinox
Goto Forum:
  


Current Time: Fri Apr 19 21:56:06 GMT 2024

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

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

Back to the top