File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting codebase and policy

 
Kevin Li
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want encode java.security.policy and java.rmi.server.codebase info into my java code,
how do I implement that.
Is it right, using System.setProperty().
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something like this:
Properties props = System.getProperties();
String rmiServerCodebase = props.getProperty("java.rmi.server.codebase");
I have a class called PropertyReader that reads all the system properties I'll need.
Hope it helps!
Enrico
 
Kevin Li
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Enrico,
I have solved it, thanks for your help.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic