This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 17161

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!