This page is no longer maintained and some links are broken.

Information:

Labs and Activities:

Quizzes and Exams:

Quiz 1, Quiz 2, Quiz3, exam 2 key

Setting your CLASSPATH

You need to do this once, in order for Java to locate the files in the texts simpleIO package (and other Java libraries). By carrying out the steps below, your CLASSPATH will automatically be set for you, each time you login to a machine on the Mocosin network. To set up your account's CLASSPATH, you need to go through the following steps, where lines starting with ">" are commands that you need to enter in a Terminal window.  You should not enter the ">", for example, if the line shows

> cd cs120

then you should type

cd cs120

(in a Terminal window) and press enter.
 
  1. create a file called .kshrc (that is 'period'kshrc) in your home directory:

  2. You may already have one of these. If so, the commands below will still work, so long as you add onto the existing file, at the bottom of your existing .kshrc file. Files which start with "dot" are system files, and it can be very dangerous to modify them, so proceed with extra care. You can create or modify your .kshrc file by (you can also use Text Editor if you prefer):

    > cd
    > nedit .kshrc
     

  3. After the editor starts, enter the following lines into that file.  They should be entered exactly in the way it shows here!!!  The first line starts and ends with CLASSPATH, and there should be NO SPACES anywhere in the line.  The second line starts with the word "export"  (please double check before you go on to step 3).

  4.  

     

    CLASSPATH=./:/usr/local/lang/java/lib/classes.zip:/usr/local/lang/java/classes/:$CLASSPATH
    export CLASSPATH
     

  5. Save the file (be sure to name it .kshrc) and then enter the following commands (the third line reads "dot" "space" "dot"kshrc, and do not type the bigger than symbols, >):

  6.  

     

    > cd
    > chmod 700 .kshrc
    > . .kshrc
    > echo $CLASSPATH


If all went well, you should see the list of paths to directories which you entered into the .kshrc file, on your screen.

Back to Top of file.


This page was last updated May 04, 1999 and is no longer maintained.

Disclaimer: "The views expressed on this page are the responsibility of Tom Linton,  and do not necessarily reflect Moravian College or Moravian Theological Seminary policies or official positions."