Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

specifying jre heap size in jar file

843798Aug 30 2005 — edited Aug 31 2005
i can specify the jvm heap size if i call i cal the jar file from the command line like this.

java -Xms128m -Xmx512m -jar file.jar

I want to be able to just run the jar file by double clicking it, and not have to call it from the command line. Can i specify the heap size somewhere in the jar file.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2005
Added on Aug 30 2005
1 comment
321 views