To run Java on Seismology Sun machines J. Louie, updated 2/5/03 First try the command: java as in the JRG/Viewmat start-up: java -cp /quake/net/ftp/pub/louie/class/757/java/jrg.jar Viewmat & If java is not found, try: /usr/local/opt/java1.2/bin/java making the JRG command: /usr/local/opt/java1.2/bin/java -cp /quake/net/ftp/pub/louie/class/757/java/jrg.jar Viewmat & Java graphics are X-Windows-extensible, so you could use the following sequence of commands to display java running on, say, unrnet.seismo and displaying on, say, jolt: xhost +unrnet rlogin unrnet setenv DISPLAY jolt:0 java -cp /quake/net/ftp/pub/louie/class/757/java/jrg.jar Viewmat & logout Older Instructions: ------------------- The JDK version 1.1 lives on our Solaris Suns in one of two places: /usr/java/ (crunch, slip) /opt/java/jdk1.1.3/ (rumble, slip, cemat) So you can invoke the java application runner with a command like: /opt/java/jdk1.1.3/java and the compiler with one like: /opt/java/jdk1.1.3/javac The JDK version 1.2 (AKA Java 2) lives on crunch in: /opt/java1.2 At the moment it will only run on crunch and slip, but this will change. JavaWorkshop 3.0, a visual development tool, relies on JDK 1.2 and will only run on crunch at the moment. It is free from Sun for Windows as well: http://www.sun.com/workshop/java/ A script running it is in /usr/local/bin/jws . I will try to get my copy of JavaWorkshop 2.0 off a tape, which will run on cemat, rumble, and slip. Sun's Java Tutorial is at: http://java.sun.com/docs/books/tutorial/index.html For JDK 1.1, you will find the actual "javadocs" for each class at: http://java.sun.com/products/jdk/1.1/docs/api/packages.html for instance: http://java.sun.com/products/jdk/1.1/docs/api/java.lang.Math.html The javadocs are very useful for seeing what constructors, methods, and data a given class has. For JDK 1.2, the javadocs are at: http://java.sun.com/products/jdk/1.2/docs/api/index.html I will update this to http://www.seismo.unr.edu/ftp/pub/updates/louie/seismo-java.txt