CS 696 Emerging Technologies: Java Distributed Computing Spring Semester, 1999 Java on Rohan |
||
---|---|---|
© 1999, All Rights Reserved, SDSU & Roger Whitney San Diego State University -- This page last updated 01-Feb-99 |
Some Java Information
Java on Rohan
Version of Java available:
JDK 1.0.2
Using a Version of Java
Add to your path the location of the java bin directory of the version you wish to use
|
|
JDK |
location |
1.0.2 |
/opt/java1.0.2/bin |
1.1.6 |
/opt/jdk1.1.6/bin |
1.2 |
/opt/jdk1.2/bin |
1.2 |
/opt/java/bin |
|
|
JDK |
Location |
1.2
(Java 2)
|
/opt/jdk1.2/bin |
1.2
(Java 2 )
|
/opt/java/bin |
/opt/jdk1.0.2/bin/javac foo.java /opt/jdk1.0.2/bin/java foo
SDSU Java Library
The SDSU Java library contains ~100 classes, some of which may be useful in your assignments
The library is on rohan and moria and is free
Documentation is at:
http://www.eli.sdsu.edu/java-SDSU/
You can also download the library from that URL
To use the library you need to know how to use packages. See http://www.eli.sdsu.edu/courses/fall98/cs596/notes/class1/class1.html#Heading15 for information about using packages.
Classpath and SDSU Java Lib
Set the CLASSPATH environment variable to point to locations that contain java packages that you with to use. There is no need to include the location of the standard Java packages, it is done for you by java.
The SDSU Java library has been installed as a standard extension to jdk1.2 on rohan and moria. This means that you do not need to include the SDSU Java Library in your classpath to use the SDSU Java library on rohan or moria. In fact, even if you include the SDSU Java library in your path, the version referenced in your path will not be used. If you are using pre-JDK 1.2 java’s the following classpath will access the SDSU Java library.
setenv CLASSPATH '.:/usr/local/lib/java'
Java GUI Applications & NCD Terminals
There are several problems running a java GUI based application on the NCD terminals on campus.
First, on some accounts an AWT based program will not display on NCD terminals. This does not happen all the time. It does not seem to happen with JDK 1.2, but this could be from a small test sample. The problem is with the old version of the NCD software (3.x) running on the NCD terminals. Reports are that version 5 of the NCD software fixes the problem, however NCD does not support the version of the terminals in BAM and in E301. A few terminals in the library can run version 5. This does not affect applets running in a browser, but does affect applets running in the appletviewer. The fix for this problem is:
type
xstdcmap -all
at the shell prompt before you run a java application that uses AWT and have it display on an NCD X-terminal in the BAM labs. This does not work with some window managers like fvwm.
Second, in JDK 1.1.6 and 1.2 the window coordinate system on the NCD is off by 10-30 pixels
Javadoc
Using Javadoc
There are three steps in creating java documentation using javadoc. First there is inserting the proper comments in your source code. Second is running javadoc. There are some problems with javadoc in JDK 1.1.x. These have been fixed in JDK 1.2. For more information about using javadoc see:
http://www.eli.sdsu.edu/courses/fall98/cs596/notes/javadoc/javadoc.html
or
http://www-rohan.sdsu.edu/java/jdk1.2/docs/tooldocs/solaris/javadoc.html
Copyright ©, All rights reserved.
1999 SDSU & Roger Whitney, 5500 Campanile Drive, San Diego, CA 92182-7700 USA.
OpenContent license defines the copyright on this document.
Previous    visitors since 01-Feb-99    Next