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.
- Enter your home directory: cd
- Create a directory named java: mkdir java
- Enter the directory just created: cd java
- Create a directory named cs1: mkdir cs1
- Download (either from the CD of the Java textbook or from the exercise
home page) the file Keyboard.java into the cs1 directory
- Compile the Keyboard.java file: javac Keyboard.java
- Enter your home directory: cd
- Adjust the $CLASSPATH variable enabling the java compiler
to search for packages stored in your java directory or in the
actual directory:
- In the .bash_profile change the export command to:
export CLASSPATH=/usr/local/j2sdk1.4.0_01/jre/lib/rt.jar:~/java:.
- Logout.
- 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.