Setting Maximum Heap Size Without Command Line

This is my first time posting so I'm sorry If I get this wrong...

I am trying to install "Sun Java(TM) Studio Enterprise" which worked fine at home but at work I'm always getting java.lang.OutOfMemoryException.

Using jconsole I can see that it sets the max Heap size to 66.7Mb which is used up when it starts decompressing jar files.

As the installation application is an exe I need a way to set the JVM Max Heap size without having access to the command line. ie. a way to set the -Xmx500m option (but not on the command line)

A bit of info... I'm running Windows XP with 1GB ram & 10GB HD spare.

[636 byte] By [madformusea] at [2007-11-27 3:15:16]
# 1
It can't be done in the VM.You would have to do it externally such as creating an installer or creating your own wrapper that starts the VM.
jschella at 2007-7-12 8:17:48 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Well thats a pain, and a bit daft aswell! I was wondering if it could be something to do with me running a Virtual Machine (not the JVM) because I've managed to install it on 2 other non VM machines... oh well thatnks for the reply.
madformusea at 2007-7-12 8:17:48 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
> Well thats a pain, and a bit daft aswell! It was specifically designed that way to preclude the possiblity of a random bit of java code consuming all of the memory without the consent of the computer owner.
jschella at 2007-7-12 8:17:48 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
I give it my consent! there is pleanty to go around... i just wanted a way to set it (like you can for applets). Thanks for youre help though, i don't meen to sound bitter... I'm pretty sure now this is a vm issue anyway.
madformusea at 2007-7-12 8:17:48 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5

> Setting Maximum Heap Size Without Command Line

If this application has an exe laucher - look in the manual for the launcher if it has a syntax to accept and pass on VM arguments (like eclipse does).

If you can launch this application using command line

(java -jar Application.jar or java package.of.Application)

try http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#203

tschodta at 2007-7-12 8:17:48 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 6
Thanks for your help but i allready looked for this... The installed application allows this kind of command line option but not the exe installer... I've allready given up on this anyway...
madformusea at 2007-7-12 8:17:48 > top of Java-index,Java HotSpot Virtual Machine,Specifications...