Problem faced Using Swig with Java

Hi,

I have been using SWIG-1.3.29 to Wrap C into Java.I hava interface file ie "example.i" and java File

"main.java". Now i set the path

JAVA_INCLUE

C:\Program Files\Java\jdk1.5.0_01\include;

JAVA_BIN

C:\Program Files\Java\jdk1.5.0_01\bin;

and set java.library.path=.;D:\........\example.i;%path%;

1.Now In Command Prompt

Swig -java -example.i

2. Swig makes "example.java", "example_wrap.c","exampleJNI.java".

3.Compile the java file

4.After Compilation i try to run the java program ,the following exception is occuring.

java.lang.UnsatisfiedLinkError: no example in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)

at java.lang.Runtime.loadLibrary0(Runtime.java:822)

at java.lang.System.loadLibrary(System.java:992)

at main.main(main.java:10)

If i hava missed any steps please tell me.

[937 byte] By [zzdevia] at [2007-11-26 16:03:15]
# 1
one more thread?
suparenoa at 2007-7-8 22:25:05 > top of Java-index,Java Essentials,Java Programming...