A
Allen Wallis
Hi,
I am trying to package my application as a single jar file, say
app.jar, that can be executed using java -jar app.jar. The problem is
that app.jar requires extensions, say ext1.jar and ext2.jar. I know I
can use the Class-Path manifest entry to ensure that these extensions
are added to the classpath, however this means that I must send the
end-user 3 files - app.jar, ext1.jar and ext2.jar.
Can I package ext1.jar and ext2.jar inside app.jar so that I only need
the app.jar file in order to run the application? I do not want to
unpack the extension jars since they may be 3rd party jars and I would
prefer them to remain intact.
The goal of this exercise is to have a single 1-click executable jar,
the end user should be able to receive the file, and double-click to
run it.
Thanks
Allen
I am trying to package my application as a single jar file, say
app.jar, that can be executed using java -jar app.jar. The problem is
that app.jar requires extensions, say ext1.jar and ext2.jar. I know I
can use the Class-Path manifest entry to ensure that these extensions
are added to the classpath, however this means that I must send the
end-user 3 files - app.jar, ext1.jar and ext2.jar.
Can I package ext1.jar and ext2.jar inside app.jar so that I only need
the app.jar file in order to run the application? I do not want to
unpack the extension jars since they may be 3rd party jars and I would
prefer them to remain intact.
The goal of this exercise is to have a single 1-click executable jar,
the end user should be able to receive the file, and double-click to
run it.
Thanks
Allen