[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A Cross Platform Java Problem
The following code snippet in an applet works fine in Netscape 4.72
under Linux (SuSE 6.3)
but under Windoze anything, throws a security exception. Any ideas?
// Set up security manager so that we can play UDP
secMgr = System.getSecurityManager();
........
// Wait for a UDP message
System.out.println("Waiting for a UDP message on port " + port + "
..");
byte [] buff = new byte [32768];
ds = new DatagramSocket(port); // OK under Linux; security exception
under Windoze
dp = new DatagramPacket(buff, buff.length);
ds.receive(dp);
ds.close(); // Not required under Linux; needed under Windoze
String sk = new String(dp.getData()).trim();
(If the issue is a Windoze matter please contact me privately.)
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il