heap space problem when running from .jar

hi

I have an application, in which i load images, but when they are big i get out of memory error: java heap space.

When i run it from the command line i easily avoid this using the -Xmx command. But i would love to start my app from a .jar instead of from the command line. Anyone know a way to include this command in my jar file or maybe another way to get around it.

Thnx in advance

/Patrik

[425 byte] By [PKenoa] at [2007-11-27 8:25:35]
# 1
HiU can use the follOwing wayjava -Xms8m -Xmx256m -jar <YourJar.jar>Ensure that in the manifest of YourJar.jar u have specified the main class which pops up ur applicationCheersTigerXX
TigerXXa at 2007-7-12 20:14:39 > top of Java-index,Desktop,Deploying...