| Author |
Rmi activation on win-NT,win 2k
|
abhi zulu
Greenhorn
Joined: May 18, 2002
Posts: 14
|
|
hey javaites!! i tried activation(rmi) , it works fine on win98,95 . but it gives a socket exception if run on win-nt or win2k. i tried to change the policy file too .. example: permission java.net.SocketPermission "localhost:1024-", "listen"//connect,accept,resolve but it didnt work ...plz help me asap thanx for ur time
|
 |
Michael Ernest
High Plains Drifter
Sheriff
Joined: Oct 25, 2000
Posts: 7292
|
|
"ordinaryguy java" - The onscreen name you have chosen does not conform to Javaranch's naming policy. Please review our policy and change your name accordingly. Thanks,
|
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
|
 |
Mr. C Lamont Gilbert
Ranch Hand
Joined: Oct 05, 2001
Posts: 1170
|
|
You need to establish permission for your program to access things on win2K and NT. when you run your program you should run it with a commandLine option pointing it to a permission file that gives your program permission to access the resources you seek. The policytool.exe will help you create the appropriate permission file. Here is an example of a lazy man's policy file grant { permission java.security.AllPermission; }; Here is how you start your program with it java.exe -Djava.security.policy=filepath -jar ChessOne.jar I think you can figure out the rest. This is not the only way to use a policy file and I used this back in the 1.3 days so I hope it applies to 1.4 as well...
|
 |
 |
|
|
subject: Rmi activation on win-NT,win 2k
|
|
|