Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Just one Classpath issue more ...
Just one Classpath issue more ... [message #463996] Thu, 22 February 2007 00:42 Go to next message
Eclipse UserFriend
Hello,

definetly, classloaders RCPs and dynamic libraries are terms that had
"owned me" for a long time. In my last project I left it as impossible (I
had a secundary nasty way to accomplish my objectives...), but now I
can't, now I must face it.

First of all, let's say that I'm "trying to run" a RCP with the
OpenGL-Java's API LWJGL. I perform the following steps:

1) Create new plugin-project, make it RCP, use a template example view.
2) In the project root directory, I create a lib/ and a jar/ directories
where I put LWJGL dynamic libraries and jars respectively.
3) In plugin.xml Runtime tab, I configure the classpath to include all
jars in /jar dir.
4) Make a product
5) Write Java code, for example, create the canvas inside the view.
6) I especify to vm where to find the libraries in run configuration:
-Djava.library.path=lib/ in arguments tab, vm box.
7) click on run
8) The Rcp is created, but it can't find the lwjgl in classpath lol.

That's the error: "java.lang.UnsatisfiedLinkError: no lwjgl in
java.library.path" .

With the same configuration as the above one, if I create a main method in
one class and I configure a "run as a SWT aplication" instead than a
"eclipse aplication", it works perferctly.

I hope somebody could explain this strange behaviour.
Thanks,
Víctor Llorens
Re: Just one Classpath issue more ... [message #464042 is a reply to message #463996] Thu, 22 February 2007 13:16 Go to previous message
Eclipse UserFriend
To work in an RCP app you need to:
1) create a plugin for the jars
2) include the native libs in the plugin
3) use Bundle-NativeCode to specify the native libs

Then the jars and native libs will be available for your RCP application.

Later
PW
Previous Topic:BUG: TeamProject Set import
Next Topic:[DataBinding] Binding a TableViewer
Goto Forum:
  


Current Time: Tue Apr 15 01:08:31 EDT 2025

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

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

Back to the top