PDA

View Full Version : In jdeveloper, how do you make 1 jar file out of contents of 2 jar files?


Guest
05-13-2005, 06:06 AM
Does anybody know how to use jdeveloper to deploy all the
individual files in 2 jar files into only 1 jar file?
This would mean that the user would have less to worry about
when receiving a jar file to run. For example, suppose you had

filea.jar

a.class
b.class
c.class

fileb.jar

d.class
e.class
f.class

Is it possible to have

onlyonefile.jar

a.class
b.class
c.class
d.class
e.class
f.class

Then, when you run onlyonefile.jar, you only have to do this:

java -cp onlyonefile.jar package.Main

If you don't combine the 2 jar files, you have to do this:

java -cp filea.jar;fileb.jar package.Main

You can use winzip, but I would like to have a more automated
way of doing this.

Thanks for any tips on doing this in jdeveloper or out of
jdeveloper.

--- Enfred

shay
05-16-2005, 10:50 AM
Doesn't it give you an option to specify which files to include in the
JAR file when you create a new JAR deployment profile?

Shay
http://otn.oracle.com/products/jdev


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service