java.exe MyClass flavour=strawberry
set flavour=strawberry java.exe MyClass %flavour%
System property flavour with value "strawberry "" will be accessible via System.getProperty(flavour"); Make sure you put the -D before your classname or else you will find -Dflavour=strawberry appearing at arg[0] instead. Contrary to rumour, this feature is also available in Java version 1.6 or later. Make sure you use an upper case
set flavour=strawberry java.exe -Dflavour=%flavour% MyClass
This page is posted |
http://mindprod.com/jgloss/getenv.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\getenv.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[3.148.105.127] |
| |
Feedback |
You are visitor number | |