[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [equinox-dev] Question about Quickstart Guide, launching the framework

Hi Daniel,

You can find more about the osgi.bundles property on 
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

In order for the framework to find the bundle in osgi.bundles, they should be written either with the absolute path, or the relative path from the directory where the framework bundle resides. In your case this should be something like 

osgi.bundles=file\:bundles/jogl.jar@start

This is in case the bundles folder is a subfolder of the folder where the org.eclipse.osgi_3.4.jar lives.

The other property, osgi.framework.extensions, I think you should pass on the command line 
as -Dosgi.framework.extensions=file\:bundles/org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar, something like 
java -Dosgi.framework.extensions=file\:bundles/org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar -jar org.eclipse.osgi_3.4.jar -console

Actually, you need not pass osgi.framewrk.extensions on the command line, you may include it in the config.ini file as:
osgi.framework.extensions=file\:bundles/org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar

Now you should have three entries in the config.ini file:

osgi.bundles=file\:bundles/jogl.jar@start
osgi.framework.extensions=file\:bundles/org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar
eclipse.ignoreApp=true


Regards,
Lazar

-----Original Message-----
From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel
Sent: Tuesday, June 22, 2010 6:05 PM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Question about Quickstart Guide, launching the framework 

I found the Equinox Quickstart Guide and now I have some direction. I am able to get the Equinox command line and manually install and start bundles, but the config.ini is causing some annoying problems. Can anybody help me with the two questions below?

config.ini
------------------------------------------------------
/home/djkasht/workspaceBlueprint/EquinoxAspectsHellowWorld/
	configuration/
    		config.ini
	./bundles/jogl.jar
	./bundles/org.eclipse.equinox.weaving.aspectj_1.0.0.200808061839.jar
	osgi.bundles=jogl.jar@start
  	eclipse.ignoreApp=true
------------------------------------------------------

Here is what my log says,

!SESSION 2010-06-22 10:56:46.683 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -vmargs Dosgi.framework.extensions=org.eclipse.equinox.weaving.hook
Command-line arguments:  -console -vmargs Dosgi.framework.extensions=org.eclipse.equinox.weaving.hook

!ENTRY org.eclipse.osgi 4 0 2010-06-22 10:56:47.138
!MESSAGE Bundle jogl.jar@start not found.


I have a jogl.jar just for testing purposes to see if I can load a bundle (it was converted to a bundle). It works if I have the jogl bundle in the folder above bundles folder, where the org.eclipse.osgi_3.4.jar lives, and it will show up after entering "ss" as active, but when I move it to the bundles folder it craps out :( Any ideas?

Also, does my log output above show that I added a framework extension correctly, should org.eclipse.equinox.weaving.hook show up in Framework Arguments? Here is the command I use to start the OSGI command line, java -jar org.eclipse.osgi_3.4.jar -console -vmargs Dosgi.framework.extensions=org.eclipse.equinox.weaving.hook
________________________________________
From: equinox-dev-bounces@xxxxxxxxxxx [equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Kashtan, Daniel [Daniel.Kashtan@xxxxxxx]
Sent: Monday, June 21, 2010 12:39 PM
To: equinox-dev@xxxxxxxxxxx
Subject: [equinox-dev] Question about Quickstart Guide, launching the framework

Hello all,

I am up to the point in the Quickstart Guide where I am ready to launch the framework, but I am not sure how. The "OSGI in Action" book I have shows that it implemented its shells as bundles and has me all kinds of confused. Does the Guide imply that the hello bundles is supposed to be activated?

This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Corporation. The recipient should check this e-mail and any attachments for the presence of viruses. ITT accepts no liability for any damage caused by any virus transmitted by this e-mail.
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev