n00b qn: RCP runtime classpath? [message #459711] |
Wed, 06 December 2006 12:35  |
Eclipse User |
|
|
|
Originally posted by: null.bitbucket.net
Hi everyone,
(sorry if this is a duplicate post - first time posting this!)
I'm trying to track down a java.lang.NoClassDefFoundError exception that
I'm getting on a 3rd party jar file at runtime in my RCP application.
Compile time appears to be fine - I've added the jar in the project's
properties / Java Build Path and I'm not getting any errors there.
I've gotten the call to the 3rd party jar to work when I run it as a Java
application, by setting the runtime classpath (Run/Debug... menu command,
Classpath tab), but I can't find where the runtime classpath is set on an
RCP application. Can anyone tell me where this is?
Thanks in advance!
|
|
|
|
|
|
|
Re: n00b qn: RCP runtime classpath? [message #459744 is a reply to message #459718] |
Thu, 07 December 2006 02:44  |
Eclipse User |
|
|
|
Originally posted by: jojy.sv.gmail.com
Hi Mattew,
Even if you put a jar inside your plugin and you still want to export it
as a jar it is possible.
I have used that
ie com.xx.xx.plugin.jar has a hibernate.jar inside,Only thing I did
was that i added the bibernate.jar and .,(because i did not bundle my
classes as jar) into the Bundle-Classpath and I exported the plugin as a
jar(by default the export wizard point to a folder and I selected jar
option) I have used eclipse 3.2 and java 5
Regards
George S
Matthew Hall wrote:
> Paul Webster wrote:
>> No, RCP plugins can only see RCP plugins (with a few minor exceptions).
>>
>> A useful list for creating them is at
>> http://wiki.eclipse.org/index.php/Plug-in_Development_Enviro nment
>>
>> Later,
>> PW
> Another option is to create a regular plug-in project, add a "lib"
> folder and put your jars in it, then add those jars to the Classpath
> list on the plug-in manifest's Runtime tab. Then click Add... on the
> Exported Packages list and export the packages you need access to. I
> used this method to embed Hibernate in my app and it works very well.
> The drawback to this method is that (somebody correct me if I'm wrong)
> when your plugin can only export as a folder instead of a self-contained
> jar when using embedded jars.
> Matthew
|
|
|
Powered by
FUDForum. Page generated in 0.02758 seconds