LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2008, 12:39 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

" 4) Answer the question from TB0ne "
" Is this the modified sctp program file(s) .... "

What is your answer ? Is the code modified ?

What else to say ? Compiles with no errors and no warnings at all
on CentOS-5.2 with jdk1.5.0_01 and Fedora 8 with jdk1.6.0_10, just
to mention some different combinations.

Also : please read all the doc's in "JavaSCTP-0-5-7-doc.tar.gz"
it's only 50 pages ! (and no guarantee that JavaSCTP-0-5-7 can
be used at all)
 
Old 11-19-2008, 07:59 PM   #17
phase_ram
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
" 4) Answer the question from TB0ne "
" Is this the modified sctp program file(s) .... "

What is your answer ? Is the code modified ?

What else to say ? Compiles with no errors and no warnings at all
on CentOS-5.2 with jdk1.5.0_01 and Fedora 8 with jdk1.6.0_10, just
to mention some different combinations.

Also : please read all the doc's in "JavaSCTP-0-5-7-doc.tar.gz"
it's only 50 pages ! (and no guarantee that JavaSCTP-0-5-7 can
be used at all)

I didn't get your question. But I didn't modified the program that i download from the link you have provided.I tried to run the program sitting on the same folder that i have downloaded it. And did you tell me to use Fedora 8 with jdk1.6.0_10?? And I am reading the document but i couldn't find anything about compiling and running but there is all about the description of functions that are used in the development of program.

Regards
 
Old 11-20-2008, 05:41 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I didn't get your question.
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?

Last edited by knudfl; 11-20-2008 at 05:47 AM.
 
Old 11-23-2008, 06:45 AM   #19
phase_ram
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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)
 
Old 11-23-2008, 12:18 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
http://i1.dk/JavaSCTP/
Quote:
This is the environment the implementation has been tested it with:
* Linux kernel 2.6.16.21 (SuSE)
* lksctp-tools 1.0.4
* x86-64 (amd64)
* Java 1.5.0_06-amd64
I did not get the tests to work on any Linux x86
( I tested it on 10 different systems)

As I said in #16 :
" ... no guarantee that JavaSCTP-0-5-7 can be used at all ! "
Try googling .. Java SCTP .. if you want further info.
 
Old 11-24-2008, 09:09 AM   #21
phase_ram
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
http://i1.dk/JavaSCTP/

I did not get the tests to work on any Linux x86
( I tested it on 10 different systems)

As I said in #16 :
" ... no guarantee that JavaSCTP-0-5-7 can be used at all ! "
Try googling .. Java SCTP .. if you want further info.

I have been working with fedora 8 and java 1.6 with lksctp 1.0.9 as per your suggestion. I tried to run the program in various ways finally the following error occur:

[root@localhost JavaSCTP-0-5-7-src]# java SCTPTest
Exception in thread "main" java.net.SocketException: setsockopt() failed, errno=22
at dk.i1.sctp.SCTPSocket.subscribeEvents(Native Method)
at dk.i1.sctp.SCTPSocket.subscribeEvents(SCTPSocket.java:86)
at SCTPTest.main(SCTPTest.java:20)

How do i get rid of this problem. Please help me.

Regards
 
Old 11-25-2008, 07:43 PM   #22
phase_ram
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
http://i1.dk/JavaSCTP/

I did not get the tests to work on any Linux x86
( I tested it on 10 different systems)

As I said in #16 :
" ... no guarantee that JavaSCTP-0-5-7 can be used at all ! "
Try googling .. Java SCTP .. if you want further info.
please!! tell me about the solution of the problem. Do u have any idea about running the program so that i could built my own application after seeing it. In your second last thread u asked me
"Did u do it??". Now i did what u said and what should i do after that please help me.


Regards
 
Old 11-25-2008, 09:33 PM   #23
phase_ram
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
http://i1.dk/JavaSCTP/

I did not get the tests to work on any Linux x86
( I tested it on 10 different systems)

As I said in #16 :
" ... no guarantee that JavaSCTP-0-5-7 can be used at all ! "
Try googling .. Java SCTP .. if you want further info.
I am also trying to run makefile in suse 10.2 but the error occurred which is of following type:


..
....
.....
......
g++ -shared -o libdk_i1_sctp.so dk_i1_sctp_SCTPSocket.o -lsctp
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libsctp.a when searching for -lsctp
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lsctp
collect2: ld returned 1 exit status
make: *** [libdk_i1_sctp.so] Error 1


How do i resolved it??? I have used the same link for jni.h which u have send me for fedora.

regards
 
Old 11-26-2008, 07:12 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
cannot find -lsctp
You may have to install an x86_64 version of
"libscpt" = lkscpt, or compile it yourself.

(Can't help further, have no working x86_64
machine these days)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make file run at bootup jolly Linux - General 2 01-12-2007 10:11 PM
How do I make a simple script and make it run on bootup?? coolblue Programming 5 12-18-2006 09:55 PM
how to write a batch file to make a program run during boot up in windows??? b0nd Programming 7 09-04-2006 06:16 AM
Can't Configure Or run Make file Pretzels Linux - Software 4 01-26-2005 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration