How to install the Keyboard class\\ on the DTU Linux portable PCs

How to install the Keyboard class
on the DTU Linux portable PCs

In the course you will need the Keyboard class of the Java textbook for reading values, e.g. numbers, from the keyboard.

  1. Enter your home directory: cd  
  2. Create a directory named java: mkdir java
  3. Enter the directory just created: cd java
  4. Create a directory named cs1: mkdir cs1
  5. Download (either from the CD of the Java textbook or from the exercise home page) the file Keyboard.java into the cs1 directory
  6. Compile the Keyboard.java file: javac Keyboard.java
  7. Enter your home directory: cd  
  8. Adjust the $CLASSPATH variable enabling the java compiler to search for packages stored in your java directory or in the actual directory:

    1. In the .bash_profile change the export command to:
        export CLASSPATH=/usr/local/j2sdk1.4.0_01/jre/lib/rt.jar:~/java:.
      
      
    2. Logout.
    3. Next time you log in, the Keyboard class will be on your path.



Maintained by: Anne Haxthausen, IMM, DTU
Last modified: Sep 6, 2002



File translated from TEX by TTH, version 3.01.
On 6 Sep 2002, 11:28.