knking.com -- Programming Language Books and Training

 C C++ Java

Books by K. N. King
Home
Books by K. N. King
Short courses
Recommended books
Recommended links
FAQ

Java Programming: From the Beginning

The jpb Package

The files listed below belong to the jpb package. Use your browser to download them. Put them in a subdirectory named jpb that is inside the directory where you keep your Java programs.

Convert.java
DrawableFrame.java
SimpleIO.java

Here's a more detailed description of the installation process:

1. First, create a directory (folder) on your hard drive named jpb. Make sure that the letters are all lower-case: jpb, not Jpb or JPB. Put this directory inside the directory where you will keep your Java programs.

2. Point to the Convert.java link above and click the right mouse button. A menu will appear. Select "Save link as..." or "Save target as...". A file dialog box will appear. Navigate to the jpb directory that you created in Step 1 and save the file there. Before you click the "Save" button, check to see what type of file is shown in the "Save as type:" area of the file dialog. If it says "All Files (*.*)", then you're in good shape. Otherwise, select "Text Files (*.txt)" before pressing "Save".

3. Repeat step 2 for the DrawableFrame.java and SimpleIO.java files.

4. Open a DOS window and navigate to the jpb directory. Check that the Convert.java, DrawableFrame.java, and SimpleIO.java files are in the directory. Also check that these files have the correct names. (Some browsers may alter the file names.) If the files have the wrong names, use the DOS rename command to rename the files. Next, check that the files have the correct contents. Enter the following command in the DOS window:

edit Convert.java

You will see the contents of the Convert.java file. If you see lines containing < and > at the beginning and end of the file, you will need to remove these. (Some browsers add HTML commands to the file as they save it.) Save the file. Repeat the process for the DrawableFrame.java and SimpleIO.java files.

Copyright © 1999-2000 K. N. King. All rights reserved.