Can runtime parameters exist inside JAR Files?

D

Darol

Can runtime parameters exist inside JAR Files? I would like to include
runtime heap (e.g., -Xmx512) parameters inside my JAR file.
 
J

Joan

Darol said:
Can runtime parameters exist inside JAR Files? I would like to
include
runtime heap (e.g., -Xmx512) parameters inside my JAR file.
Technally you can put any file in a jar. The trouble is getting
it out
and using it.
 
D

Darol

I know that any file can be included in the jar, but can the runtime
parameters be passed to the JVM from the Jar file.
 
R

Roedy Green

Can runtime parameters exist inside JAR Files? I would like to include
runtime heap (e.g., -Xmx512) parameters inside my JAR file.

I looked in the manifest spec but saw nothing, but I vaguely remember
seeing an example of such. It might have been for jet though which is
something altogether different.

If you want to look yourself, see http://mindprod.com/jgloss/jar.html
and follow the link to the manifest spec.
 
D

Darol

Has anyone seen an example of runtime parameters being used from within
the jar file?
 
R

Roedy Green

Has anyone seen an example of runtime parameters being used from within
the jar file?

There is the Javac -J option to burn them into the class files.

Presumably if you burn them into the main class they will be burned
into the jar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top