I'm pretty sure you can't, otherwise that would defeat the whole point! As a security measure, the stack size is implicitly capped so that the program can't take over the machine unless you explicitly allow it...
Your best bet to make the invocation simple is to write a .bat and a .sh in your distribution, so that these wrappers can launch Java with the appropriate arguments.
Regards, Paul
ZACZEK, MARIUSZ P. (MARIO) (JSC-DM) (NASA) wrote:
Does anyone know how to call the -Xms and -Xmx from within code? I usually use a command line: java -Xms200m -Xmx256m myprog but I want to simply run: java myprog but have the heapsize be initialized within the program.
Mario
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".