I am trying some examples on JNI but an stuck with this problem. Running on Win NT 4.0 with Dev-C++. (Have Cygwin also). Can somebody help!! When I run my java class file, I get this exception. What am I doing wrong here? Exception in thread "main" java.lang.UnsatisfiedLinkError: print at MyWorld.print(Native Method) at MyWorld.main(MyWorld.java:12) Thanks in advance, Kailas
Karl Laird
Ranch Hand
Joined: Jul 14, 2001
Posts: 67
posted
0
this could be caused by many problems including problems in the javah header file, no header file, not being able to find the C dll, etc. Can you post your java code, c header file and c code - this would make debugging alot easier
The Eagle sneers at the Peacock<p>Systems Administrator<br />OrderWare Solutions Ltd<br /><a href="http://www.orderware.net" target="_blank" rel="nofollow">http://www.orderware.net</a>
Servin Park
Greenhorn
Joined: May 10, 2002
Posts: 26
posted
0
Kailas, Try the following: instead of System.loadLibrary("yourDLL"); try using System.load("C:/path/to/your/yourDLL.dll");
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.