File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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/.;
 
Consider Paul's rocket mass heater.
 
subject: environment variables
 
Similar Threads
weblogic
Environment variables
environment variables in grep command
Reading Environment Variables
Tomcat installation Problem