wood burning stoves 2.0*
The moose likes Java in General and the fly likes how to make jar file with external jars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to make jar file with external jars" Watch "how to make jar file with external jars" New topic

how to make jar file with external jars

mona elrouby

Joined: Feb 04, 2007
Posts: 2
I have a java application which works just fine on eclipse. Now I want it to work without the need for eclipse. The solution is to File -> Export... to a jar file.
The problem is that I added many external jar files.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37945
Welcome to the Ranch.
I haven't tried putting a .jar file together from Eclipse for a long time, but doesn't it automatically include the other .jars used?

Try it and see.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60767

Please reserve this forum for questions on advanced Java. I have moved this post to a more approriate location.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: how to make jar file with external jars
Similar Threads
How to make eclipse userlibrary for jar dependencies using java code and ant build?
Jar file problem
Adding an external jar file library in Netbeans 6.5.1 IDE
Eclipse JARing
Eclipse - Exporting to Jar including external jar files