Mega Code Archive
Categories
/
Java
/
Development Class
Setting the Value of a System Property from the Command Line
java -Dmy.prop="my value" MyApp public class Main { public static void main(String[] argv) throws Exception { String prop = System.getProperty("my.prop"); } }