[ale] Java socket problem

David Cleveland Haynes gt9900b at prism.gatech.edu
Thu Aug 1 00:01:15 EDT 1996


I have written a server in Java that is supposed to listen for connections
on a specified port. Pretty standard. Here is the error message I get when
I run the compiled ( .class ) code :

java.lang.NullPointerException
        at java.lang.Runtime.loadLibrary(Runtime.java)
        at java.lang.System.loadLibrary(System.java)
        at java.net.PlainSocketImpl.<clinit>(PlainSocketImpl.java:43)
        at java.net.ServerSocket.<init>(ServerSocket.java:48)
        at java.net.ServerSocket.<init>(ServerSocket.java:69)
        at java.net.ServerSocket.<init>(ServerSocket.java:58)
        at Server.<init>(Server.java:19)
        at Server.main(Server.java:48)
java.lang.UnsatisfiedLinkError: socketCreate
        at java.net.PlainSocketImpl.create(PlainSocketImpl.java:53)
        at java.net.ServerSocket.<init>(ServerSocket.java:76)
        at java.net.ServerSocket.<init>(ServerSocket.java:58)
        at Server.<init>(Server.java:19)
        at Server.main(Server.java:48)

Here is the code from Server.java, starting at line 19:

      try { listen_socket = new ServerSocket( port );
      catch( IOException e ) fail( e, "Exception creating server socket" );
      System.out.println( "Server: listening on port " + port );

I have set the port to 9999.



Any ideas would be much appreciated.


					Dave






More information about the Ale mailing list