This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

environment variables

Rob Hegemann
Greenhorn

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:
PATH = %PATH%;C:/JDK/BIN;
and
SET CLASSPATH = %CLASSPATH%;D:/MyClasses;C/.;
 
GeeCON Prague 2014
 
subject: environment variables