Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » JNI in RCP
JNI in RCP [message #465604] Tue, 03 April 2007 05:40 Go to next message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
Hi,

I have a problem with loading some DLL files in my RCP application.

My RCP application contains several different plugins. One of them uses JNI
and depends on several DLL files. When I run the product from Eclipse IDE
everything works fine with modifying the java.library.path-value in the
launch configuration and adding the dll files to the PATH variable in the
project properties.

But when I export my product I get several problems:

- How to add the java.library.path-value to the config.ini without needing
the absolute path of the DLL location???

- How to add the path of the DLL location to System-variable PATH without
having to start Eclipse via a .bat file???

Please excuse my fragmentary knowledge of JNI, my task is to combine the RCP
application with the classes using JNI.

Thanks in advance!

Greetz,
Carsten
Re: JNI in RCP [message #465614 is a reply to message #465604] Tue, 03 April 2007 08:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zxkane.msn.com

why not put your librarys under a plugin
Re: JNI in RCP [message #465615 is a reply to message #465604] Tue, 03 April 2007 08:40 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
Hello Carsten !
please read this article http://www.eclipsezone.com/articles/eclipse-vms/?source=arch ives
which hopefully helps you.
A good starting point is to put the *.dll in the top level container of your plugin or plugins.
Re: JNI in RCP [message #465624 is a reply to message #465615] Tue, 03 April 2007 13:30 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
NB Also make sure you load the DLLs in the right order. If A->B then you must load B first, then A. I'm sure you'll know the right order; but if not, you can always try the various combinations until you get it right :-)

Alex.
Re: JNI in RCP [message #465733 is a reply to message #465604] Wed, 04 April 2007 08:07 Go to previous message
Carsten Spieker is currently offline Carsten SpiekerFriend
Messages: 197
Registered: July 2009
Senior Member
Hi *,

thank you for the very helpful replies.

Now I
Previous Topic:Event Handler for 'Next' button in a wizard.
Next Topic:How to show view busy state during long running tasks
Goto Forum:
  


Current Time: Thu Apr 25 18:09:10 GMT 2024

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

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

Back to the top