Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » OSGi Launcher in Helios(The class "and" cannot be found???)
OSGi Launcher in Helios [message #659350] Sat, 12 March 2011 16:39 Go to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 29
Registered: March 2011
Junior Member
All,

I am getting a ClassNotFoundException when I attempt to launch an OSGi container from inside helios. The thing I find a bit bizarre is the class in question would seem to be "and".

Look at the error message:

java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at ...

The class not found is and???

It doesn't seem to matter what bundles check off in the launcher dialog, I still get the error so I don't think this is a problem with my code.

Is this a bug? If so, is there a work around?

I've used the OSGi launcher in the past with ganymede and galileo. I don't ever remember seeing this.

Thanks
Re: OSGi Launcher in Helios [message #659529 is a reply to message #659350] Mon, 14 March 2011 12:44 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
I don't remember seeing anything like this. Since a URLClassLoader is involved, my guess is the PDE launcher is not finding the java launcher located in org.eclipse.equinox.launcher.

You may want to open a bug against PDE-UI and provide steps to reproduce.

Tom.
Re: OSGi Launcher in Helios [message #663861 is a reply to message #659529] Wed, 06 April 2011 16:38 Go to previous messageGo to next message
Bruno Sinou is currently offline Bruno SinouFriend
Messages: 22
Registered: December 2010
Location: Berlin
Junior Member
I've blocked on the same problem the past 2 hours....
Does any one has a hint or a link to find out what happen ?

I'm using :
eclipse helios SR2,
java 1.6.0_20
on WinXP SR2

Everything has been installed today because I'm usually work on centOS and I had to switch the win to add some RCP/excel bridge on my app.

I've tried .product files automatically generated for the RCP mail templates : they work.

But with a more complicated project the equinox launcher crash before doing anything.

The only thing I got in the console is the following.
java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Exception in thread "main" 



I have checked my target platform and I have bundle org.eclipse.equinox.launcher in it.

Can anybody help me with that ?


Thanks by advance

Bruno
Re: OSGi Launcher in Helios [message #663935 is a reply to message #663861] Wed, 06 April 2011 20:58 Go to previous messageGo to next message
Bruce Kelly is currently offline Bruce KellyFriend
Messages: 63
Registered: July 2009
Member
In article <ini4h7$2oc$1@news.eclipse.org>, bsinou@argeo.org says...
>
> java.lang.NoClassDefFoundError: and
> Caused by: java.lang.ClassNotFoundException: and
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Exception in thread "main"
>

I have had this problem, although not with Eclipse.
The key was to realize that the JVM was looking for a main class call
"and".
The problem I had was caused by the command line containing a value for
a system property containing a space. The value needed to be enclosed in
quotes.

Namaste, Bruce
Re: OSGi Launcher in Helios [message #664216 is a reply to message #663935] Thu, 07 April 2011 21:14 Go to previous message
Bruno Sinou is currently offline Bruno SinouFriend
Messages: 22
Registered: December 2010
Location: Berlin
Junior Member
I'm really sorry to say that this way, but I LOVE YOU BRUUUCCCCE !

So guys, if you are interrested with the end of the story , just have a look at my args :
-Dorg.myproject.security.ui.initialPerspective=org.myproject.client.ui.execution
-Dlog4j.configuration=file:${system_property:user.home}/dev/src/myProject/demo/log4j.properties


on linux, no problems...
But, back on windows ,
${system_property:user.home} = C:\Documents and Settings\Bruno\

... and I'm dead...

A big thanks from Paris.

Peace

Bruno



Previous Topic:Logging not OSGi compliant?
Next Topic:Problem with log4j on equinox deployment
Goto Forum:
  


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

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

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

Back to the top