permaculture playing cards*
The moose likes Beginning Java and the fly likes Using 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 » Beginning Java
Bookmark "Using "-classpath" in javac" Watch "Using "-classpath" in javac" New topic
Author

Using "-classpath" in javac

Joe Cheung
Ranch Hand

Joined: Oct 18, 2002
Posts: 104
If I have many jar files used to compile my java application, can I use wildcard (the example is shown below) in order to eliminating the full paths for each jar files that make the command clumsy?

javac -classpath $THIRDPARTY_HOME/lib/*jar abc.java


Joe
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3415
    
  12
What happened when you tried it ?


Joanne
Tim Myer
Greenhorn

Joined: Dec 19, 2005
Posts: 2
Take a look at this link for JSE6:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6268383
It details the use of wildcards in the java commandline tools that accept the classpath parameter.
------Tim---------
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using "-classpath" in javac
 
Similar Threads
javac problems
Can't find .class file
Taglib file outside WEB-INF
Path setting problem in java task
javac woes.