Reputation: 15274
How to read some property passed from command line like -Dthread.count
I saw it, but I'm not sure how to read that one in java code
Upvotes: 4
Views: 11457
Reputation: 3818
Java has this documented:
http://download.oracle.com/javase/tutorial/essential/environment/sysprop.html
Basically, you're reading in the value of a System Properties. The link above gives you an example.
Upvotes: 5