The following files from The Java Cookbook are included here.
Most of these files are Java source code. If you load an HTML file from here, the applets will not run! The HTML files must be saved to disk and the applets compiled, before you can run them!
All files are Copyright ©: All rights reserved. See the accompanying Legal Notice for conditions of use. You can pretty much do what you want with these, including using them commercially, under the terms of the original Berkeley Copyright, which has been approved as an Open Source Initiative conditions-of-use.
Most of the questions people ask relate to the other APIs that I have used in the book. The following table will help you resolve missing classes. Remember that, as discussed in Section 2.5, you need to have these in your class path both at compile time and at run time.
Used In | Package | Description | Download From... |
---|---|---|---|
Everywhere | com.darwinsys.util.* | My utility classes; useful classes collected from various places in the book. | javacook.darwinsys.com |
1.13 | junit.* | JUnit Testing Classes | www.junit.org |
11.* | javax.comm.* | Serial Communications | java.sun.com/products/javacomm/ |
17. | netscape.javascript.* | Netscape JavaScript interface (see netweb/JScript.java) | None (included with Netscape; see e.g., $NETSCAPE/lib/classes/java40.jar) |
18.5 | com.pdflib and others | Various PDF libraries | See bottom of page 535/top of page 536. |
19.* | javax.mail.* | Java Mail API; activation.jar also needed; both in J2EE) | java.sun.com/products/javamail/ |
26.3 | com.ibm.cs.* | Bean Scripting Framework and IBM Scripting | http://oss.software.ibm.com/developerworks/projects/bsf/ |