Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java native with RMI - cannot load the library

Reply
Thread Tools

Java native with RMI - cannot load the library

 
 
Krystian
Guest
Posts: n/a
 
      11-30-2006
Hi,

i'm on a mission to set up an app that would check the server load.
I've got a native library to do so and it was tested using normal /not
RMI/ app - worked just fine.
Now i'm trying to get it to work with RMI but it's a pain in the ass.

I've got it all running with RMI, i unpack the dll file to a root
folder of application, check if everything is ok /it is/ and try to
load the library.
Unfortunately it does not load!
Library file name is: wininfo.dll
When i do System.loadLibrary("wininfo");
i get en exception unsatisfied link error.
When i try to load with
System.load("D:\\Application\\server\\wininfo.dll" );
i get same thing!
Each way worked just fine without the RMI!

I am testing it on local filesystem, RMI works fine, the remote class
invokes another one, which uses native methods, so it's not the 'dll
should be in client directory' issue.

Any ideas?

Best regards,
Krystian

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JNI 64bit JVM, load 32bit native library mark.faine@gmail.com Java 4 06-22-2011 07:34 AM
Exception thrown & Failure in loading T2 native library db2jcct2 while connecting to db2/400 through java savita Java 1 12-30-2006 03:37 PM
Why does java.rmi.Naming not implement interface java.rmi.Registry? Jan Schulze Java 1 03-26-2005 07:45 AM
RMI Vs RMI over IIOP JScoobyCed Java 1 01-28-2005 09:54 AM
RMI, JINI or RMI/IIOP Buu Nguyen Java 1 08-25-2004 11:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57