Mega Code Archive

 
Categories / Java Tutorial / Development
 

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");      } }