File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes creating long classpath? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "creating long classpath?" Watch "creating long classpath?" New topic

creating long classpath?

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

i want to compile my java code.
this java code require 18 jar files to compile which are placed in 2 different directories.

please tell me how to compile the code to add all the jar files in the classpath.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

I think this is what you wanted:

A little more complex than some, perhaps. I use it on a project that pulls in all the JDO jars (wildcard in directory) plus selected explicitly-named jars. The other class path definition being pulled in (the one named "classpath") mostly references stuff that's already in a prototype web app that will be copied/merged to build the working web app.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: creating long classpath?
It's not a secret anymore!