File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Adding JAR Files to my Classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding JAR Files to my Classpath" Watch "Adding JAR Files to my Classpath" New topic

Adding JAR Files to my Classpath

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 629

I want to add a few jar files to my class path. Can somebody tell me how to do it and how do people working in a company usually do this?/ I am not using Eclipse or any other IDE. I have my Java path set up in the environmaental variable 'PATH' in My Computer Properties.


Be Humble... Be Nice.
Seth Anshul

Joined: May 02, 2006
Posts: 16
Just add the absolute location of your jar file to the CLASSPATH.
That would do

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15092

See How To Set The Classpath in the JavaRanch FAQ.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Adding JAR Files to my Classpath
It's not a secret anymore!