Naveen Lade
Posts: 2
Nickname: naveenlade
Registered: Jun, 2003
|
|
Re: java.net.SocketException
|
Posted: Jun 5, 2003 1:42 AM
|
|
Stuart,
I had the same problem some days back but the simulted while I was trying to doing something else in RMI.
I could solve it in the following way.
Create a file policy.txt with the following content :
**************************************************** grant { permission java.security.AllPermission "", ""; };
grant CodeBase "file:./Login.jar" { permission java.security.AllPermission; };
********************************************** ****** instead of Login.jar, give the absolute path of ur source code jar.
execute the code with the following options :
java -Djava.security.policy=policy.txt <classname>
If that does not work, try removing the 'grant CodeBase..' part in the policy.txt file.
If you still have any problem, please let me know and I will let you know If I could help you.
Give me a mail at naveen.lade@polaris.co.in
-Naveen.
|
|