A
Andrew Thompson
Eitan M wrote:
....
Usually this type of error happens when a developer switches
from running code that does not invoke any security manager,
into an applet, or WebStarted application or applet.
But that does not quite fit your description - that it fails
when run from the command line. An application launched
from the command line should have no security manager,
or at least - it should be able to do anything that can be
done by running the code direct from the IDE.
If you get no solution, you might try posting a complete,
compilable example so that we can investigate further.
Andrew T.
....
I am trying to broadcast a message.
When I am doing this (on FORTE IDE),
everything works fine, and I am not getting any exception.
When I am trying the follows, and running from the command line :
In Java code : .....
I get the exception message :
access denied (java.net.SocketPermission 240.0.0.1:2222 connect,resolve)
Why ?
Usually this type of error happens when a developer switches
from running code that does not invoke any security manager,
into an applet, or WebStarted application or applet.
But that does not quite fit your description - that it fails
when run from the command line. An application launched
from the command line should have no security manager,
or at least - it should be able to do anything that can be
done by running the code direct from the IDE.
And what should I do in order to solve the problem ?
If you get no solution, you might try posting a complete,
compilable example so that we can investigate further.
Andrew T.