Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how send parameter to jvm (javaw.exe or java )

Status
Not open for further replies.

fuadhamidov

Programmer
Sep 22, 2003
98
TR
Can anybody ,who knows about a lot of things to prepare "manifest" file for the jar file, help me?

My problem is like that (if I could explain correctly)
I want to give -mx150m option to the java virtual machine (javaw.exe), javaw -mx150m / java -jar -mx150m

Code:
Manifest-Version: 1.0
Created-By: Apache Ant 1.5.1
Main-Class: PartSim
blah-blah:-mx150m

whether it is been able or not, yet I don't know that can I give that parameter to javaw.exe from manifest file which is in the JAR file when the app.jar is clicked?
I know that I can give this option from console : )
but I am curious about that how I should give that option,i.e. java -mx150m app.jar
 
I do NOT know a lot of ... but maybe the following can help

Option on jar

-Joption
Pass option to the Java virtual machine, where option is one of the options described on the reference page for the java application launcher. For example, -J-Xms48m sets the startup memory to 48 megabytes.

Found at :
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top