> Chao Liu wrote:
> 
> A problem was happened when I use JNI in linux to call my c programme.
> I used jdk1.3 and the following is my little test programm:
> 
> [...]
> System.loadLibrary("javac");
> [...]
> 
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no javac in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:749)
>         at java.lang.System.loadLibrary(System.java:820)
>         at JavaCallC.<init>(JavaCallC.java:6)
>         at JavaCallC.main(JavaCallC.java:17)

Try
  javac -Djava.library.path=. JavaCallC

-- 
Weiqi Gao
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to