try {
listenSocket = new ServerSocket(port);
}
catch( IOException e) {
ErrHandler.printex(e);
}
However this lines cause following Error Message:
java.lang.UnsatisfiedLinkError: no net in shared library path
at java.lang.Runtime.loadLibrary(Runtime.java:440)
at java.lang.System.loadLibrary(System.java:569)
at
at java.net.ServerSocket.<init>(ServerSocket.java:57)
at java.net.ServerSocket.<init>(ServerSocket.java:131)
at java.net.ServerSocket.<init>(ServerSocket.java:83)
at Tris.RealData.server.Listener.run(Listener.java:76)
Has anyone an idea what this message is supposed to mean?
I appreciate any help!
Roland
Most likely your PATH does not have the DLL's of the JDK in it.
What you need to do is set up you're PATH properly.
Most Java VMs need some DLLs to run, I presume you are using
JDK 1.1.x ?? Well, in their bin directory there is a dll called net.dll
and it
(presumably) contains all the networking code. So, when you try
to create a ServerSocket, it tries to load the DLL, but it can't find
it.
As far as I know, NT looks in your path (as well as other standard)
places
for DLLs. So add the bin directory to you're path...
Alan
Roland Knor wrote:
--------------D70C0AC18E0156B48E06E091
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Alan Spencer
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Alan Spencer
n: Spencer;Alan
org: Brooktrout Technology
email;internet: a...@brooktrout.com
title: Mr.
note: ME!
x-mozilla-cpt: ams.eng.brooktrout.com;2
x-mozilla-html: FALSE
end: vcard
--------------D70C0AC18E0156B48E06E091--