Hai I am trying to execute a method in a class which runs with the help of some VM arguements. It works fine with the java comand in commandline but i want it to set in the program itself sothat another application can call it(In thet case command line is not an option). Can any one help me with this Thanks Sharon Bose
posted 12 years ago
You can't set any JVM arguments once the JVM is up and running.
If, on the other hand, you are talking about properties (which are set via -Dname=value on the command line), those can be set using the System.setProperties and setProperties methods.