How can I put my app with all libs in a singe-jar?

M

Markus

I have written an hybrid applet (applet + application) which uses some
libs.

Is there a possibility to put the application (only classes and
properties) and the libs (jar-files) into a singe-jar without to
extract all data from the libs to the application?

kind regards

Markus
 
A

abrasivesponge

Seems like a lot of work, and not very flexible. But I don't see why
you can't do it.
 
R

Roedy Green

Is there a possibility to put the application (only classes and
properties) and the libs (jar-files) into a singe-jar without to
extract all data from the libs to the application?

if you put the classes into one big jar and don't nest, i.e. put the
oher jars in directly, all should be ok.
 
R

Rogan Dawes

Markus said:
I have written an hybrid applet (applet + application) which uses some
libs.

Is there a possibility to put the application (only classes and
properties) and the libs (jar-files) into a singe-jar without to
extract all data from the libs to the application?

kind regards

Markus

Take a look at ProGuard. It unpacks all your libraries, identifies the
classes actually used (optional), and packs them all up into a single jar.

Rogan
 
M

Markus

ProGuard seems to be a solution but is there no possibility to use the
classes from the jars inside the jar?

Markus
 
P

pkriens

On OSGi they are, we have the Bundle-Classpath that can point to JARs
inside JARs as well as directories.

Kind regards,
Peter Kriens
 
M

Matt Parker

Markus said:
I have written an hybrid applet (applet + application) which uses some
libs.

Is there a possibility to put the application (only classes and
properties) and the libs (jar-files) into a singe-jar without to
extract all data from the libs to the application?

kind regards

Markus

Be careful about licensing. Some of the licenses in those jars might
prohibit the distribution of the classes outside of the original jars.

Matt
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top