University of California at Berkeley Department of Electrical Engineering & Computer Sciences Instructional & Electronics Support /usr/pub/java.help http://www-inst.eecs.berkeley.edu/usr/pub/java.help Feb 19, 1999 CONTENTS: Java for HP-UX systems Java for OSF/1 (DEC UNIX) systems Java for Solaris x86 systems Java for Windows NT systems Using javadoc Bug Reports Java for HP-UX Systems ---------------------- The current, officially supported version of the Java Development Kit (JDK) on Instructional HP workstations is 1.1.3. To access it, please run: % setenv JAVA_HOME /usr/sww/lang/java1.1.3 % setenv CLASSPATH .:${JAVA_HOME}/classes % set path = (/usr/sww/X11/bin $path) % java MyProgram (where MyProgram is the program you want to run.) You can run the first three commands (the "setenv" statements) automatically every time you log in, by placing them at the end of your "~/.cshrc" file. You can edit your "~/.cshrc" file with Emacs, or whichever editor you prefer. Other versions of Java which are installed on Instructional machines may include the following: Java JDK 1.1.2 for HP-UX 10.x is located in "/share/d/java-1.1.2". Java JDK 1.0.2 for HP-UX 10.x is located in "/usr/java". These versions are likely old, broken, not correctly installed, or perhaps all three. Don't use them! If you type "java -version" and it prints something other than java version "HP-UX Java B.01.13.04" then you are using the wrong version of java. Use the commands listed at the beginning of this section to ensure that you get the right version. If Java dumps core on you when compiling or your programs abort spontaneously with no obvious error message, you may have run out of memory. The HP workstations in Soda Hall do not have enough memory to compile many fairly simple Java programs. To work around this, here are some things you can do before or during your compile jobs: * Quit other programs (e.g., Emacs, Netscape) and close any random xterms or windows you're not using * Log into a bigger machine (e.g., parker, franklin) You can do this with the "ssh" command. For example, to log in to franklin in a new window named "franklin": % xterm -T franklin -e ssh franklin & * Convince other people on your machine to log into a server instead (type "man who" and "man write" for more info) The programs which make up the Java installation for HP-UX are: appletviewer jar java java_g javac javadoc javah javah_g javakey javap javaverify javaverify_g jdb jre jre_g native2ascii rmic rmiregistry serialver Documentation is in HTML and can be read with a WWW browser on a local Instructional system at the URL file:/share/d/java-1.1.2/index.html For more current documentation, please see these WEB sites: http://java.sun.com/products/jdk/ http://java.sun.com/docs/books/tutorial/ http://www-inst.EECS.Berkeley.EDU/html/java/ ======================================================================== From root@diva.EECS.Berkeley.EDU Fri Aug 21 10:33:59 1998 Subject: Software Updates To: sww-announce@CS.Berkeley.EDU Status: R JAVA (JDK) has been updated in the Software Warehouse for the following supported operating systems. Please note that serveral versions have been added. OS: HP-UX10.20 -- java1.1.3, java1.1.5 (default) HP-UX10.20 -- jws (Java Workshop) 2.0 Solaris2.6(sparc) -- java1.1.6 (default), java1.2 Solaris2.6(X86) -- java1.1.6 (default), java1.2 Shared files: none Executable: /usr/sww/bin (or) (all) /usr/sww/lang/java1.1/bin (all) /usr/sww/lang/java1.2/bin (Solaris 2.6 sparc and x86 only) /usr/sww/lang/jws/Java-WorkShop2.0/JWS/bin (HP only) Documentation: /usr/sww/man -- java1.1 /usr/sww/lang/java1.2/man -- java1.2 As always, bug-sightings should be reported using `sww-bug@cs.berkeley.edu' Please remember that there may be a one-day delay for filesystem updates to appear on individual systems, as the software is distributed throughout the department by mirroring and caching. Archive URL -- http://www-sww.cs.berkeley.edu/software ======================================================================== Date: Wed, 11 Nov 1998 15:02:38 -0800 To: sww-announce@CS.Berkeley.EDU Subject: SWW -- JavaStudio Sender: owner-sww-announce@EECS.Berkeley.EDU Java Studio 1.0 has been added in the Software Warehouse for the following supported operating systems. This is a trial software. OS: Solaris2.6(sparc) Solaris2.6(X86) Executable: /usr/sww/bin/js As always, bug-sightings should be reported using `sww-bug@cs.berkeley.edu' Please remember that there may be a one-day delay for filesystem updates to appear on individual systems, as the software is distributed throughout the department by mirroring and caching. Archive URL -- http://www-sww.cs.berkeley.edu/software ======================================================================== Java for OSF/1 (DEC UNIX) systems --------------------------------- *********************************************************** * WARNING * If you are using java on cory.EECS, this section does NOT apply to you, even though cory is a DEC system. For more information about the Java system on cory, please read /usr/pub/java-cory.help. *********************************************************** ======================================================================== From Michael Short, Manager of the SWW: The Java Developers Kit has been updated in the Software Warehouse to version 1.0.2. This version is designed for OSF/1 3.2, HP-UX 10.0, and Solaris 2.5. (No version for SunOS or Ultrix is available.) OS: HP-UX OSF/1 Solaris Executables: (under /usr/sww/X11/bin:) applet_viewer Run applets without using a web browser. java Runtime program. javac Compiler. javadoc Generates API documentation in HTML format from Java source code. javah Creates C header files for a Java class. javap Disassembles compiled Java files and prints out a representation of the Java bytecodes. jdb Debugger. Library: Classes, demos, header files, and source for example applets can be found under /usr/sww/lang/java. Documentation: Some documentation for Java is under /usr/sww/doc/lang/java. However, most is available online, at http://java.sun.com/products/JDK/1.0.2/ ======================================================================== (November 1996) The new version of the development kit for HPUX in in: http://www.hp.com/gsyinternet/hpjdk/main.html ======================================================================== From Michael Short, Manager of the SWW, 1/24/97: To: sww-announce@orodruin.CS.Berkeley.EDU Subject: Netscape 3.01 Netscape Navigator v3.01 has been added to the Software Warehouse for the operating systems listed below (i.e. all SWW-supported OSs except ULTRIX). This version will become the default "netscape" after Monday, Feb. 3rd. Support for Java is available in all four versions (HP-UX, Solaris, SunOS, and OSF/1). For Java under Netscape to work, it must be able to find a file, "java_301". This is in the documentation directory (listed below). Netscape has been installed on SWW with a wrapper script to automatically make this file available to the program, using the environment variable CLASSPATH. If you make use of this variable yourself, you may want to copy the java_301 file into your own home directory (or make a symlink over to it's position in the doc directory). To make a symlink more manageable, i've added a generic symlink of my own, /usr/sww/doc/www/clients/netscape/java_default_class. I'll keep this updated, linking to the newest version of java_XXX when a new install is done. This version (as well as earlier 2.X versions of Navigator) provides support for "plug-ins", downloaded helper applications run from within Navigator. I've added a directory to hold plug-ins as they become available, /usr/sww/X11/lib/X11/netscape. If you know of useful UNIX plug-ins, please let me know and i'll add them there. Netscape maintains a Plug-In Registry; however, i've just checked, and there aren't any beyond the Netscape media player for Unix. Everyone seems to be writing only for Windows 95/NT. OS: HP-UX OSF/1 Solaris SunOS Executables: (under /usr/sww/X11/bin) netscape link to v3.0 netscape-3.0 current version netscape-3.01 newest version Libraries: /usr/sww/X11/lib/X11/netscape/ Plug-ins for Navigator Documentation: /usr/sww/doc/www/clients/netscape/3.01 The Release Notes are available online through the program's Help menu option. Same with the manual. But be sure to read the README file and LICENSE in the directory listed above. As always, bug-sightings should be reported using the program `sww-bug.' Michael Short mshort@cs ======================================================================== Java for Solaris x86 Systems ---------------------------- The Sun JDK package is installed on PCs running Solaris x86 in 277 and 330 Soda for Instructional use. These versions of the compiler are installed (Mar 1998): java 1.1.x series (aka java 1): /usr/sww/lang/jdk1.1.2 /usr/sww/lang/jdk1.1.5 /usr/sww/lang/jdk1.1.6 /usr/sww/lang/jdk1.1.7B java 1.x series (aka java 2): /usr/sww/lang/jdk1.2 (Apr 10, 1998) Sun announced that its Java application development software will now be offered to all segments of the non-profit education community for use in teaching and research. We are verifying that the offer includes Solaris x86 in addition to the Sparc version of Solaris. The products in this offering are available for free download to authorized academic users via Sun's web site at (http://www.sun.com/edu/java/free). They are available for an initial 12 months expiring on March 31, 1999. The products include: Java(TM)Web Server(TM) 1.1 JavaPureCheck(TM) JavaStar(TM) JavaSpec(TM) JavaScope(TM) Java for Windows NT systems --------------------------- The Microsoft J++ package bas been installed on some NT systems in 330 Soda Hall for Instructional use. Java Development Kit 1.1.2 is installed on the Soda Hall non-Instructional NT server. It is a collection of command line tools for doing Java development. Unless you need Java 1.1 you're probably better off using Microsoft Visual J++ 1.1. For more information about the non-Instructional NT server, see http://gallia.cs/nt/apps.html. Help about the non- Instructional NT server is available from sww-nt@cs. Using javadoc -------------- The "javadoc" program generates HTML output suitable for use with a WEB browser. There is one flaw: it includes references to gif files in an "images" directory that are relative to your home directory, and that probably won't be there. We have installed these files on the Instructional WEB server under "/images". So you can correct the links to these gif files simply by adding a single forward slash character (/) in front of the word "images". The http:www-inst.eecs.berkeley.edu WEB server will interpret that as a reference to the "/images" directory on the server. "classes.zip" for the jdk is available in /share/d/java/lib/classes.zip. Bug Reports ----------- Please report problems with software on the Instructional systems to root@cory.eecs.berkeley.edu. EECS Instructional & Electronics Support 377 & 386 Cory, 333 Soda root@cory.eecs.berkeley.edu