• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Policy File and Command line usage

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Hey! You're stepping on my hand! Help me tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic