Quote:
Originally Posted by knudfl
If you missed the question ( originally asked by
TB0ne ) 4 times, you might have missed something
else too.
Start all over again. Unpack the files from
JavaSCTP-0-5-7-src.tar.gz to a new directory
with a new name.
The stuff will compile on any system, Fedora 8
is just one example. (I have no fc6)
And I found no Linux not doing it.
(Everything from Slackware 10 to Fedora 9)
Delete the headers jni* if in /usr/local/include.
# ln -s /usr/lib/jdk1.5.0_01/include/jni.h /usr/local/include
# ln -s /usr/lib/jdk1.5.0_01/include/linux/jni_md.h /usr/local/include
Replace jdk with your version and location. (/usr/lib/jvm ?)
Did you do it?
|
Thank u for ur instruction. The problem which i have shown in previous post was solved. The error are completely removed. Now here is the another problem. As u know the folder also contain two program SCTPTest.java and SCTPTest2.java. When i tried to run these program i got following error. How do i correct it??
[root@localhost JavaSCTP-0-5-7-src]# javac SCTPTest.java
[root@localhost JavaSCTP-0-5-7-src]# java SCTPTest
Exception in thread "main" java.lang.UnsatisfiedLinkError: no dk_i1_sctp in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at dk.i1.sctp.SCTPSocket.<clinit>(SCTPSocket.java:14)
at SCTPTest.main(SCTPTest.java:9)
[root@localhost JavaSCTP-0-5-7-src]# javac SCTPTest2.java
[root@localhost JavaSCTP-0-5-7-src]# java SCTPTest2
Exception in thread "main" java.lang.UnsatisfiedLinkError: no dk_i1_sctp in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at dk.i1.sctp.SCTPSocket.<clinit>(SCTPSocket.java:14)
at SCTPTest2.main(SCTPTest2.java:9)