Introduction ------------ This directory contains all of the source code presented in the textbook "Java, Java, Java, Second Edition." The programs are organized by chapter. There is one subdirectory for each chapter. Within each chapter subdirectory, each program is organized into a separate subdirectory containing the (*.java) source code, an HTML index file (in the case of Java applet programs), and the (*.class) Java bytecode files. For example, the ch01/helloapplet/ subdirectory contains the following files: -rw-r--r-- 1 jjjava other 357 Dec 21 15:27 HelloWorld.class -rw-r--r-- 1 jjjava other 517 Jul 1 13:44 HelloWorld.java -rw-r--r-- 1 jjjava other 168 Jul 1 13:37 index.html Compilation and Testing ----------------------- The Java sourcecode files contained in these directories were compiled using using the javac compiler for Java 2 SDK, version 1.3.1, also known as the Java 2 Standard Edition (J2SE), on a Unix system. The resulting bytecode files were tested on both a Solaris Unix system, running J2SE v1.3.1_01, and on Windows platforms, using J2SE v 1.3.1_02. They should be compatible with any operating system or Integrated Development Environment (IDE), such as Metrowerks Codewarrier or Borland JBuilder or Sun's Forte, that incorporates J2SE v 1.3.1. Java Applets ------------ The Java applet programs were tested successfully in the following browser and appletviewer enviroments: J2SE 1.3.1_01 appletviewer (Unix) J2SE 1.3.1_02 appletviewer (Windows) Netscape Navigator 6.2 (Windows 2000 and NT with J2SE 1.3.1_02 plugin) Netscape Navigator 6.2 (Red Hat Linux 7.1 with J2SE 1.3.1_02 plugin) Netscape Navigator 4.0 (Windows 2000 with J2SE 1.3.1_02 plugin) Internet Explorer 5.5 and 6.0 (Windows 2000 and NT with J2SE 1.3.1_02 plugin) Internet Explorer 5.5 (Windows 98 with J2SE 1.3.1_02 plugin) Internet Explorer 5.0 (Windows 2000 with J2SE 1.3.1_02 plugin) Internet Explorer 5.1:mac (Mac OS X) All of the applets work as advertised on these systems. HTML Files ---------- The HTML files included with the applets in Chapters 1-8 (except for the Ch05/temperature applet) use the simple tag, because the code used in these applets is compatible with JDK 1.1. These applets should run in virtually any browser environment. The HTML files in Chapters 9-16 (and ch05/temperature) use HTML files that were created using the HTMLConverter program that is provided with J2RE v1.3.1_02. These HTML files use Javascript code to determine the browser environment and to generate the appropriate , , or tags. The EMBED tag is used for Netscape (other than 6.0), the OJBECT tag is used for IE. And the APPLET tag isused for Netscape 6 and all other browsers. Because Netscape 6.2 and IE 6.0 interpret the APPLET tag, the original HTML files for chapters 9-15 can be used for these applets. The original index files are saved in the htmls directory (see below). They are stored in directories named dir_BAK, where 'dir' gives the name of the sourcecode directory. If you wish to use these files with Netscape 6.2 or IE 6.0, copy these original HTML files into the appropriate directories. Java Plugin ----------- Sun Microsystems provides Plugins for browsers that are not equipped with J2SE, v 1.3.1_02. It also provides links to the following IDE's that support J2SE v1.3: Forte for Java, Borland JBuilder, Visual Cafe, Oracle JDeveloper, and Metrowerks Codewarrier. For more information see: http://java.sun.com/j2se Description of the other files in this directory ------------------------------------------------ README.1 -------- Provides a complete listing (ls -l ch*) of the top level directories contained in this directory. It gives the names of all the program subdirectories in each chapter. README.2 -------- Provides a complete listing (ls -l ch*/*) of the top two levels of this directory. It gives the names of all the java, html and class files contained in this directory. index.html ---------- Provides a complete listing in HTML format of all the programs contained in this directory. This file allows the programs to be accessed using a Web browser. The index is organized hierarchically and contains some navigational links. There is a link to each *.java program. And, for applets, there is a link to its *.html file. Thus, it is possible to run any applet program simply by clicking on the link to its HTML file. mkindex.pl ---------- This is the Perl script that was used to create index.html. To use the script on your system, change the value of the root HTTP address for your top-level directory and run the script perl mkindex.pl in the top-level directory. htmls ----- A directory of the original HTML files for the applets in chapters 9-16. These HTML files use the simple APPLET tag. You can use these simpler files if you are using Netscape 6.2 or IE 6.0. (See the comments above under HTML Files.)