Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » New runtime breaks bundle
New runtime breaks bundle [message #95903] Mon, 27 August 2007 09:22 Go to next message
Eclipse UserFriend
Originally posted by: joedoe.mailinator.com

Hi everyone,

I've written a bundle and launched it on my laptop on an Equinox OSGi platform on an IBM J9 Runtime Environment. When I copy my bundle to my Windows Mobile handheld device, where I also run Equinox on J9, I get a BundleException: "The Activator is invalid". It has a nested ClassNotFoundException for my Activator.

Has anyone encountered a similar problem? I did realize that on the handheld, I always have to specify an absolute path in the OSGi-console and lnk-file (e.g. when setting the classpath), relative paths don't work.

Any suggestions are very appreciated.

lnk-File:
255#"\J9\PPRO11\bin\j9.exe" "-jcl:ppro11" "-jar" "-cp" ".;\J9\PPRO11\osgi\" "\J9\PPRO11\osgi\org.eclipse.osgi_3.2.2.R32x_v20070118.jar" "-console"


Thanks a lot,
Joe
Re: New runtime breaks bundle [message #96023 is a reply to message #95903] Tue, 28 August 2007 08:00 Go to previous message
Eclipse UserFriend
Originally posted by: joedoe.mailinator.com

Found the mistake:
I forgot to add "." to the Bundle-ClassPath:

In MANIFEST.MF:
Bundle-ClassPath: MyFirstJar.jar,
MySecondJar.jar,
.


Hope it helps someone with the same problem.

Cheers, Joe
Previous Topic:quickstart configurations and classpath problems
Next Topic:EventAdmin Problem
Goto Forum:
  


Current Time: Thu Apr 25 09:47:51 GMT 2024

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

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

Back to the top