Results 1 to 5 of 5
Thread: classpath quest.
- 10-15-2011, 10:05 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 11
- Rep Power
- 0
classpath quest.
I am trying to use HtmlUnit either from command line or DrJava ide. This software has about 12 separate jar files, and they must all be in the classpath I use for any of their classes to be found by the compiler. When setting the classpath, what do I do: Set it to the directory containing all the jars, or do I set it to each jar separately?
- 10-15-2011, 10:15 PM #2
Senior Member
- Join Date
- Jul 2011
- Location
- Melbourne, Victoria, Australia
- Posts
- 155
- Rep Power
- 2
Re: classpath quest.
Adding multiple jars is a nuisance, if you can include them as libraries in your project properties it would be much easier.
I found in the DrJava documentation that in the project properties, you can add Extra Classpaths.
- 10-16-2011, 06:33 AM #3
Member
- Join Date
- Aug 2011
- Posts
- 11
- Rep Power
- 0
- 10-16-2011, 07:40 AM #4
Member
- Join Date
- Oct 2011
- Posts
- 33
- Rep Power
- 0
Re: classpath quest.
from Java 6 onwards you can use wild card "*" for including all jars from a directory:
C:\tmp> javac -cp C:\lib\* HelloWorld
will include all jars from C:\lib but be aware lib should not contain anything alter than jars.
- 10-17-2011, 04:43 AM #5
Member
- Join Date
- Aug 2011
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
what is runtime classpath and what is designtime classpath?
By LongTTH in forum New To JavaReplies: 1Last Post: 05-03-2011, 02:28 AM -
DTD on a classpath
By frenk_castle in forum XMLReplies: 0Last Post: 03-29-2011, 07:26 PM -
Simple Quest.
By Bgreen7887 in forum New To JavaReplies: 17Last Post: 11-06-2010, 01:24 PM -
Classpath
By jojo in forum New To JavaReplies: 5Last Post: 02-04-2010, 10:04 PM -
How to set ClassPath?
By kishan in forum Advanced JavaReplies: 5Last Post: 12-11-2009, 07:24 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks