how to increase the java heap space

can anybody suggest me how to increase the java heap space? when creating the jar file.
[94 byte] By [Josephrajaa] at [2007-11-26 23:48:33]
# 1

Greetings everyone!

I have the same problem in my Application.

It seems my application needs the -Xmx256m switch to uns. Is there any way to force this switch from the jar file or Manifest file so that I dont have to use a cmd script to start my applicaton?

Thank you for any help in advance!!

Yours,

Christian Fuchs

asten1a at 2007-7-11 15:24:15 > top of Java-index,Desktop,Runtime Environment...
# 2

Hi this is Joseph.

I found the solution for this problem. But i don't know whether it is a correct way or not.

In the "My Computer" Select "Folder Options" from the "Tools" menu. Now select the "File Type" Tab. Now in the Registered file type Select the Jar file. and click the "Advanced" Button and then "Edit" Button. Now it Shows"C:\Program Files\Java\jre1.5.0_10\bin\javaw.exe" -jar "%1" %*in the Application used to perform action. Change ths as you like for example"C:\Program Files\Java\jre1.5.0_10\bin\javaw.exe" -jar -Xmx700m "%1" %*

Bye..

Josephrajaa at 2007-7-11 15:24:16 > top of Java-index,Desktop,Runtime Environment...
# 3

Unfortunately, this will change all JAR file on the system,

not just the particular JAR.

And it is unfortunately too complicated for typical

users to follow. (We cannot distribute an app

and expect users to go configure it themselves like this)

...

Instead, look into using one of the free Java Installer.

Eg. http://java-source.net/open-source/installer-generators

lists many many free installer generators.

The idea is that you package your JAR app inside

an installer. Then you give your customer the installer.

The installer will create desktop icons, execution shortcuts, etc.

KathyMcDonnella at 2007-7-11 15:24:16 > top of Java-index,Desktop,Runtime Environment...