• Post Reply Bookmark Topic Watch Topic
  • New Topic

setting VM arguements in a class  RSS feed

 
Sharon Bose
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!