Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Start equinox using jar(Start equinox using jar instead of eclipse.exe)
Start equinox using jar [message #520505] Fri, 12 March 2010 16:23 Go to next message
Salim Erradey is currently offline Salim ErradeyFriend
Messages: 4
Registered: March 2010
Junior Member
I am working on an eclipse RAP application that deploys into Jetty into OSGI. I've successfully deployed the app with eclipse.exe and windows launcher but I want to make sure that can deploy in a multi-platform environment and so I tried to use the following command:
java -jar org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console
I am getting errors with my configuration .ini file where osgi cannot find bundles. Here is my directory layout for both eclipse and jar version and the config.ini:

Eclipse version works fine and is layed out as follows:
cpb/configuration/config.ini
cpb/features/cpb.rap.osgi.feature_1.0.0.../feature.xml
cpb/plugins/ all the plugins and the osgi windows launcher

I run eclipse.exe -console under cpb and it works.

the config.ini has the following content:
#Normally the eclipse launcher expects an eclipse app
eclipse.ignoreApp=true
#Do not terminate idle OSGi runtime
osgi.noShutdown=true
#Jetty will use this property to determine the port
org.osgi.service.http.port=7070
#This is what shall be started
osgi.bundles=org.eclipse.equinox.common@2:start,\
org.eclipse.update.configurator@3:start,\
org.eclipse.rap.ui@4:start,\
cpb.rap.osgi.feature@4:start,\
org.eclipse.equinox.http.jetty@4:start,\
org.eclipse.equinox.http.registry@4:start
osgi.bundles.defaultStartLevel=4

The jar version does not work is layed out as follows:
cpb/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
cpb/org.eclipse.equinox.common_3.5.0.v20090520-1800.jar
cpb/org.eclipse.update.configurator_3.3.0.v20090312.jar
cpb/configuration/config.ini (same as eclipse version)
cpb/features/cpb.rap.osgi.feature_1.0.0.../feature.xml
cpb/plugins/ all the plugins except those under cpb

I run under cpb the following with no success:
java -jar org.eclipse.osgi_3.5.2.R35x_v20100126.jar -console

I get a log under the cpb/configuration that indicates that it cannot find bundles that I want to start.

What is the syntax in the config.ini to reference bundles to start that are not in the same directory as OSGI.

Your input is much appreciated.

Thanks in advance,
Salim.

[Updated on: Fri, 12 March 2010 16:39]

Report message to a moderator

Re: Start equinox using jar [message #522024 is a reply to message #520505] Fri, 19 March 2010 16:57 Go to previous messageGo to next message
Phil Denis is currently offline Phil DenisFriend
Messages: 26
Registered: October 2009
Junior Member
Try this instead:
java -jar plugins/org.eclipse.equinox.launcher_XYZ.jar -console

You should use the launcher to start the framework ...

HTH,
Phil
Re: Start equinox using jar [message #524682 is a reply to message #522024] Thu, 01 April 2010 19:03 Go to previous message
Salim Erradey is currently offline Salim ErradeyFriend
Messages: 4
Registered: March 2010
Junior Member
Thanks Phil, I followed your suggestion and it worked. The Equinox quick start page threw me off! It suggested running the OSGI jar:
http://www.eclipse.org/equinox/documents/quickstart.php

A different question: is there any recommended solutions for building RAP headless, outside of the eclipse IDE.

Thanks again.
Previous Topic:use bundle.properties file from another plugin
Next Topic:Unable to satisfy dependency
Goto Forum:
  


Current Time: Thu Apr 25 16:20:07 GMT 2024

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

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

Back to the top