Setting CLASSPATH
Mac OS X
- Open
Terminalfrom Applications -> Utilities. - Type
nano .profileinto theTerminalwindow. - Move the cursor to the end by using the cursor keys.
- Add the following:
- Press
CTRL-x. When asked to "Save modified buffer", pressY. - Restart the
Terminaland you should be all set.


export CLASSPATH = .:/path/to/introcsNOTE: Make sure you find out where your
introcs directory is and substitute it in the place of /path/to/introcs accordingly.

Windows
- Right-click on
Computeron the desktop and click onProperties. - Click on
Advanced system settings. - Go to the
Advancedtab and click onEnvironment Variables. - Click on
New...underUser variables for (Your Username).
- Enter
CLASSPATHinVariable nameand.;c:\path\to\introcsinVariable value. NOTE: Make sure you find out where yourintrocsdirectory is and substitute it in the place ofc:\path\to\introcsaccordingly.



