Link to home
Start Free TrialLog in
Avatar of jbaird123
jbaird123

asked on

How to add a class to a .jar file

I have a Java program that has many .jar files.  I recently received two class files that need to be added to one of the .jar files.   How can I add these to a jar file?
Avatar of rawinnlnx9
rawinnlnx9
Flag of United States of America image

Here is this explanation of it though. It goes into much more detail.

http://www.lkn.ei.tum.de/arbeiten/faq/man/JAVA-tutorial/jar/basics/update.html
Avatar of Mick Barry
jar uf <class file name> <jar file name>

Make sure you include the class in its package/folder structure
oops, wrong way around. should be:


jar uf <jar file name> <class file name>
ASKER CERTIFIED SOLUTION
Avatar of calboronster
calboronster
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jbaird123
jbaird123

ASKER

Thank you.
Thank you jbaird for the grade and the points.
Have a nice day.