Computer Science Department Java


Ask the System Manager
(Frequently Asked Questions)
by Thomas Wallis

Computer Science Department Java

Introduction:

There are many versions of Java available to the Computer Science student. The LINUX system has a default version, but most people use the Sun version. The Sun version is usually installed in /usr/local. You can look in that directory to see the beginning of the Java directory tree.

The current Sun Java on our Debian Etch system is JDK 1.6.0_02. If you are a Csh user, you can modify your .cshrc.linux and .login.linux files to activate this version of Java. Put the following lines in your .cshrc.linux and .login.linux files:

----------------------------cut here---------------------------
setenv JAVA_HOME "/usr/local/jdk1.6.0_02"
setenv PATH "$JAVA_HOME/bin:$PATH"
----------------------------cut here---------------------------
Make sure the second line has a carriage return after it. The shell doesn't like it otherwise. Log out and back in again and use the command:
which java
You should see something like this:
/usr/local/jdk1.6.0_02/bin/java
This indicates you will be using the Java we specified above. If you see something like this:
/usr/bin/java
you are using the Debian default Java. Bash shell users should adjust their .bash_profile or other various files with similar commands.

Back to Ask The System Manager

Something left out?

The information accessible from this server is provided in good faith, but neither the Wichita State University, nor the Computer Science Department takes any legal responsibility whatsoever for the accuracy or content of data displayed on this server. Please notify us if any error is detected. Thank You !