aspose file tools
The moose likes Java in General and the fly likes adding a jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "adding a jar file" Watch "adding a jar file" New topic
Author

adding a jar file

krishna prasad gunasekaran
Ranch Hand

Joined: Jul 25, 2006
Posts: 158
I have to compile a java file using builtin struts classes. so I used the
javac -classpath option. is there any other do-it-once and use javac without -classpath option. is there a way to tell the compiler to find those classes in struts-core.jar jar file without using -classpath, like say, add the jar file to where bootstrap or extension class files reside. by doing so we can avoid -classpath option.


have a great day,
krishna prasad
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12953
    
    3

You can set the CLASSPATH environment variable. Read the installation instructions of the JDK.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: adding a jar file
 
Similar Threads
struts-core.jar
Can't find .class file
new to java, basic error
Information regarding Jar files
jar file concept