File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse JARing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse JARing" Watch "Eclipse JARing" New topic

Eclipse JARing

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Ok, I have created a simple little GUI project in Eclipse. Now, what I initially did was went into the project settings and added some external jars to the project. But I noticed that Eclipse does not copy the JARS into the project directory. So when I run the JAR utility, the external JARS of course don't end up in the JAR file. So I have to manually copy all the JAR files into the project folder and then run the JAR utility.
Is this just how Eclipse works? Or is there a setting somewhere that I can tell eclipse to pull those external JARS either into the project folder, or into the JAR file?

GenRocket - Experts at Building Test Data
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
What I've been doing, although I would certainly welcome a better way, is to create a folder in the project and then import the required jars into the folder. I then have my build properties point to the jars in the folder instead of on the external file system. If it is something I need for compiling purposes, but something I don't need to include in my jar, then it doesn't get imported into the folder.

Matthew Phillips
I agree. Here's the link:
subject: Eclipse JARing
jQuery in Action, 3rd edition