• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Rmi activation on win-NT,win 2k

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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,
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic