[6300] in java-interest
Re: `Not privileged' Problem
daemon@ATHENA.MIT.EDU (Jon Pardue)
Thu Mar 28 17:28:38 1996
Date: Mon, 25 Mar 1996 09:20:38 -0500
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Jon Pardue <jhpardue@PCMAIL.RMC.COM>
To: Multiple recipients of list JAVA-INTEREST
<JAVA-INTEREST@JAVASOFT.COM>
On Thu, 21 Mar 1996 21:48:18 +0800 "Mohd. Abul Basher" <basher@FIT.UNIMAS.MY>
wrote:
>Hi:
>Here's a problem faced by novice programmer:
>I wrote a simple Java APPLICATION which use Socket to connect port 418
>(Hyper-G Server) of our local host (meranti.fit.unimas.my). But when I run
>the class with `java', the `Exception' reports the following error:
>"
>Exception: java.net.SocketException: Not privileged
>Exception:
>java.lang.NullPointerException
>"
>Could anybody please explain what this `Not privileged' means..
Are you running from a UNIX machine? If not, this probably won't
help much. :-/
While this may not be your problem, my knee-jerk answer would be
that you're trying to bind to a port number which is less than 1024;
you have to be running as root to do that. Does it give you the
same error if you try, say, port 2000? Try it and see if the
message changes to "unable to connect" or something like that.
Since you stress that it's an application and not an applet :-),
the security restrictions there should not be applicable.
Just my 2 cents,
Jon
________________________________________________________________
Jon Pardue jhpardue@pcmail.rmc.com
Information Consultant, Reynolds Metals Industrial Systems Group
Webmaster, Reynolds Metals Company
http://www.rmc.com/
________________________________________________________________
-----
This message has been forwarded via the JAVA-INTEREST
mailing list. In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).