JDK 1.2 Quick Start

| Print me!

Step 1. Install the JDK 1.2 (Java 2) 1. The JDK can be downloaded from Sun Microsystems for free. 2. Install the JDK into any directory on your computer that you prefer Step 2. Select Preferences as shown above 1. Select Edit| Preferences from the Main Menu bar, OR 2. Select the Wrench Icon on the toolbar. 3. Proceed to Step 3
OR
Step 3. Set the Environment 1. Select Environment as shown below 2. Click the Add button 3. Proceed to step 4.
Step 4. Find 'rt.jar' file in jdk using Choose Directory dialog 1. Double Click on the jdk folder to show sub-folders 2. Double Click on the jre\lib folder to show and select 'rt.jar' 3.. Click the OK button in the dialog 4. Proceed to Step 5
Step 5. Set the Documentor (if you have JVISION with Documentor) 1. Make sure the JavaDoc Executable Path is set to javadoc.exe from jdk 1.2 even if your code is from an older jdk. The Project Path idetifies diagrams to export and the Default Documentation Target Path shows where your HTML export will go. 2. Proceed to Step 6.
Step 6. Add classes to a diagram 1. Select Add| Class/Interface from the main menu bar 2. Proceed to Step 7
Step 7. Find classes to diagram by using the Add class dialog 1. Find the sql folder in the jdk folder as shown below 2. Click Select All button (To add all) or select one to add one Class 3. Click OK button 4. Click Yes button for Automatic Placement in pop-up dialog 5. Proceed to Step 8.
Step 8. The Diagram 1. The Diagram Painter should now display classes as shown below. Later in the manual we will give you tips for dealing with all these lines!
Step 9. Quick Start Diagram Manipulation 1. To move a class, left mouse click and drag the selected class. 2. Right mouse click on a class to pop-up a context menu for a class. 3. Right mouse click on diagram white space to pop-up a diagram control context menu Step 10. Optional - Viewing the JDK Source Code If you want to view source code for the JDK 2, you must unzip the 'src.jar' file and then set your environment to include the path to the source directory 'src' as you did for the runtime file 'rt.jar' in step 4. This is because of a temporary problem that will be fixed in a future release. Also, add the path for any source files you want in your environment. Note that as you add a class you can click the check box for the root directory of that class to be automatically added to your environment. Important Note: When using JavaDoc.exe, it has to be the JavaDoc.exe from 1.2.x. JVISION does not work with a JavaDoc.exe from earlier JDK's. However, your code may be from jdk 1.1.x.