USING THE JAVA DEVELOPMENT KIT IN THE BCC DOMAIN
------------------------------------------------
*****
The below information is for JDK Version 1.1.1 and
has been tested by myself in the BCC GRADUATE domain
on 22.9.1997. Unfortunately, I do not have access to
the undergraduate domain. It is possible that the JDK
is located elsewhere in the undergraduate domain. What
you need to do is to change to /usr/local/java and see
if it is there. If not, then replace /usr/local/java
with whereever it appears below.
In the CS domain, it is currently at /usr/local/jdk1.1
--Tugrul Dayar
*****
In order to compile java programs and to run java programs and the
appletviewer in the undergraduate domain you should do the following:
Include
/usr/local/java/bin
to your path in your ".cshrc" file.
** If the local machine you are using does not run Solaris (but runs Unix
instead), then execute the following lines on the remote machine which
runs Solaris:
setenv DISPLAY local_machine_ip_address:0.0
setenv TERM xterm
Do not forget to execute
xhost +
on the local machine.
The Java Development Kit (JDK) should be located in /usr/local/java
To compile a java program named "foo.java" type
javac foo.java
The above command will create a file named "foo.class" in the current
directory.
To run the java program named "foo.class" type
java foo
To run an applet named "fooApplet.html" using the appletviewer type
appletviewer fooApplet.html
You can find local information on Java at
ftp://ftp.bilkent.edu.tr/pub/UNIX/Java