| Java System Properties |
|
|
|
| Written by Charles | |||||
| Monday, 11 August 2008 20:23 | |||||
|
Have you ever wanted to see the value of a Java System property? I have. Frequently, so I always have the following executable in the path. You can get the source HERE
/**
* List one or all system properties * * @author Charles Johnson * @created 30 March 2004 */ public class Props { /** * The main program for the Props class * * @param args One or no arguments. If one, * the key of one system property, the value * of which you want to know. If none, all * properties are listed * */ public static void main(String[] args) { if (args.length > 0) { for (int i = 0; i < args.length; i++) { System.out.println(System.getProperty(args[0])); } } else { System.getProperties().list(System.out); } }
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
|||||
| Last Updated ( Thursday, 10 November 2011 23:40 ) |



