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 environment variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "environment variables" Watch "environment variables" New topic

environment variables

Rob Hegemann

Joined: Feb 16, 2001
Posts: 2
Please explain the difference between PATH and CLASSPATH,
which I guess is two different things I need to enter in my Environment Variables in my OS (Win98). I have downloaded and
installed jdk1.2.2, and am going to be using Textpad.
What is the purpose of these, how do they differ, and how
do I set them up?
Thanks, Rob
greg philpott
Ranch Hand

Joined: Nov 10, 2000
Posts: 73
PATH: is where you will find your exectuables, eg javac.exe
CLASSPATH: is where java looks for your *.class files (compiled *.java files)
You can set them at the DOS prompt by typing this:
I agree. Here's the link:
subject: environment variables
It's not a secret anymore!