aspose file tools
The moose likes Distributed Java and the fly likes Rmi activation on win-NT,win 2k Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Rmi activation on win-NT,win 2k" Watch "Rmi activation on win-NT,win 2k" New topic
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rmi activation on win-NT,win 2k
 
Similar Threads
RMI and classpath prob
GIF Image
generate javadoc dynamicly
Web logic server....
CORBA