Java Software Notes

Data Structures and Other Objects Using Java (Second Edition)
by Michael Main
ISBN 0-201-74093-1, Softcover, 808 pages, 2003


Java Development Kit
I am using JDK 5.0 from http://java.sun.com/j2se/1.5.0/download.jsp. For those of you that use the Emacs editor, you might look at my notes on Paul Kinnucan's Java Development for Emacs (JDE). The JDE works with Emacs for Unix (including Linux) or Geoff's Voelker's Emacs for Windows.

If you are using an older JDK 1.1 you'll still have support for everything from the textbook except Iterators (Section 5.4). The new JDK 1.2 does support Iterators.

Sun's API Documentation for Collections, etc.
I use the online documentation at http://java.sun.com/products/jdk/1.2/docs/index.html. From here, there is a link to let you browse all of the Java Class Libraries (i.e., the Java Platform Core API Specification).

Throwable Objects (Exceptions)
I've never found a compact list of throwable objects in Sun's documentation, so I've posted my own list of Java's Throwable Objects for you to browse.

Putting an Applet in an HTML Document
Sun's own documentation on how to put an APPLET tag in an HTML file is available at: http://java.sun.com/products/jdk/1.2/docs/guide/misc/applet.html.

To start with, I suggest that you place all the .class files for your applets in a single subdirectory underneath your public_html directory. For example, all my applet .class files are in a subdirectory that I call applets. Then, as part of my APPLET tag, I use the CODEBASE argument, such as this:

<APPLET 
   CODE="BagApplet.class"
   CODEBASE="http://www.cs.colorado.edu/~main/applets"
   WIDTH=480 HEIGHT=340
>
</APPLET>
This particular applet tag embeds this BagApplet from Appendix I of the textbook:

If your applets use other packages that you wrote, then the directories for those packages must be installed underneath your applets directory. For example, my BagApplet.class uses the IntArrayBag from edu.colorado.collections. So, underneath my appletsdirectory is the subdirectory edu/colorado/collections, which contains IntArrayBag.class.

Browsers
I use Netscape Navigator 4.06 (or later) and Microsoft Internet Explorer 4.01. Earlier versions did not support the AWT 1.1, and even these version do not yet support Iterators. They are available from the Netscape Download Site and the Internet Explorer Home Page.


Michael Main (email main@colorado.edu)