IntelliJ Java IDE
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Policy File and Command line usage Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Policy File and Command line usage " Watch "Policy File and Command line usage " New topic
Author

Policy File and Command line usage

SMK Reddy
Greenhorn

Joined: Jun 03, 2001
Posts: 20
Hi
I am using the -D option to set my security policy file. Is this is allowed in the exam or i have to implement this in my program command line args
Here is the command line args for my program.
Java -Djava.security.policy=FBN.policy FlyByNight arg1 arg2
arg 1 is server name.
arg 2 is server port.
Is this allowed in the exam?or i need to implement like this
Java FlyByNight arg1 arg2 arg3
arg 1 is policyfile
arg 2 is server name
arg 3 is server port.
I really appreciate you suggestions.
Regards
Reddy
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
If there's a workable standard syntax to achieve something, it doesn't make sense to create a proprietary variation, I think. Myself, I simply used the -D flag (and documented this in the README). If they minded me doing so, at least they didn't mind it a lot (151/154).
- Peter
 
 
subject: Policy File and Command line usage
 
Threads others viewed
Command-Line arguments
login issues with AOL program
call java program from script?
linux cron task to invoke java class
ArrayIndexOutofBoundxception while printing arguments to Main
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com