Timothy A. Budd, Data Structures in Java
| Installation Instructions for Software for the Book:
|
Classic Data Structures in Java
|
|
|
These are courtesy of Ray Lischner, Tempest Software.
To work from home, download the compiled jar, for use when compiling your assignment.
You need to tell the compiler about the jar file. Directions for various compilers are below:
- When compiling with the JDK command line, use the -classpath argument, e.g., "javac -classpath .:jds.jar
MyClass.java".
- If you are using JBuilder, choose Project from the menu bar, then Project properties..., and click the Required
libraries tab. Click the Add... button, then the New... button. For the Name, enter a descriptive name, such as
"Classic Data Structures in Java". Then click Add... and select the jds.jar file. (You do
remember where you saved it when you downloaded it. Right?) Click OK in all the dialog boxes to get out.
- If you are using Code Warrior, open the project and select the Classes item in the project window. From the
menu bar, choose Project > Add Files..., set Files of type to "All files" and select jds.jar.
(You do remember where you saved it when you downloaded it. Right?) Code Warrior opens a Project Messages window
to report that it modified the project's access path. You can close the Project Messages window.
When you use the jds package, remember to import the required classes and interfaces from the proper package,
e.g.,
import java.util.Iterator;
import jds.Bag;
import jds.collection.Vector;
// your class declaration here ...