Princess Morgiah
2004-06-12 15:33:57 UTC
Hi,
I was wondering if it were possible to specify the -Xms and -Xmx from
within a program.
Allthough it is possible to specify these parameters from the commandline,
it's not a handy way of doing things for users. I don't know whether or not
these parameters can be set from within a manifest file in a jar, but that
would also mean starting the program as a jar, which is not very handy while
developing the software.
Therefor I would like to know if it were possible to specify these, and
other settings from withing the code itself.
After a quick look at the System class, I found a setProperty method but I
don't think that's the way to go.
Any ideas on this one?
Thanks in advance,
Princess Morgiah
I was wondering if it were possible to specify the -Xms and -Xmx from
within a program.
Allthough it is possible to specify these parameters from the commandline,
it's not a handy way of doing things for users. I don't know whether or not
these parameters can be set from within a manifest file in a jar, but that
would also mean starting the program as a jar, which is not very handy while
developing the software.
Therefor I would like to know if it were possible to specify these, and
other settings from withing the code itself.
After a quick look at the System class, I found a setProperty method but I
don't think that's the way to go.
Any ideas on this one?
Thanks in advance,
Princess Morgiah