|
Re: Classpath problem [message #69562 is a reply to message #69002] |
Wed, 09 January 2008 19:23 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Chris,
there shouldn't be any difference between including a library into RAP
and including a library into RCP or any other OSGi based application
A simple example compiles and runs fine, the relevant part of the
MANIFEST.MF looks like this:
Bundle-ClassPath: lib/my-lib.jar,
.
Just a wild guess: could it be that hibernate itself depends on some
library that is not on your class path?
I you can strip down your project to the relevant (not-working) parts,
feel free to post it here and we could have a look at it.
Cheers,
Rüdiger
Christopher Daniel wrote:
> Hello
>
> I am trying to develop RAP app that uses EMF & TENEO.
> So I need to use some 3rd part libs like hibernate3.jar.
>
> I have added them to the plugin, everything compiles fine, but when
> trying to use teneo features I get:
>
> WARNING: Error for /rap;jsessionid=4v324dv553wh4?nocache=1199623041862
> java.lang.NoClassDefFoundError: org/hibernate/Session
>
> Am I doing something wrong?
>
> --
> Chris
|
|
|
|
Re: Classpath problem [message #69759 is a reply to message #69739] |
Thu, 10 January 2008 21:40 |
Eclipse User |
|
|
|
Originally posted by: zx.us.ibm.com
> I have found the problem: bundle-classpath was empty. I have always
> thought that adding jar to build path is enough, but aparently I was wrong.
In Eclipse 3.4, there's a compiler option within PDE called "Bundle
classpath synchronization"
If you set that to true, it will catch cases like this.
Cheers,
~ Chris
|
|
|
Powered by
FUDForum. Page generated in 0.01757 seconds