|
| DEPARTMENT OF COMPUTER SCIENCE REFERENCE & FORMS |
Setting up java is pretty simple. All you have to do is change your $PATH and $LD_LIBRARY_PATH environment variables.
Version 1.2.2 (a.k.a JDK 1.2.2) and
Version 1.1
At the UNIX prompt, if you type java -version you will only get the first version of java that the system comes across, so don't trust this information. A better way to check is to type whereis java and you will be given the path(s) to all versions on the system.
set path=( ~/.bin ~/.scripts \ /usr/local/bin /usr/local/java/bin /bin /usr/bin /usr/ucb \ /usr/etc /usr/local/bin/X11 /usr/bin/X11 /usr/openwin/bin \ /usr/ccs/bin /usr/sbin . )
It may be hard to read, but there is a space between each path
entry. The "\"'s are where the lines wrap. The shell limits the length of
these lines, so if your path setting wraps lines be sure to add a "\"
at the end of the line before it wraps to the next.
Program has both v1.2.2 and v1.1:
Version 1.2.2 is located in the directory /usr/local/bin/java
Version 1.1 is located in /usr/local/java BUT
on Linprog...
Version 1.2.2 is located in /usr/local/java
...So, the moral of the story is: if you set your $PATH to /usr/local/java then you will run 1.2.2 when on Linprog and 1.1 when on Program (Which is actually convenient if you want to be able to switch from version to version without having to change your PATH variable or type in a long pathname by hand at the command prompt).