Using Multilizer with JBuilder 2

The following three chapters describe how to install Multilizer to JBuilder 2 and how to compile and run the Dcalc sample application.

1. Add Multilizer Package

JBuilder needs to know where the packages are located. This is similar to the CLASSPATH of Java VM.

To add the Multilizer package to the class path:

  1. Choose Tools | Default Project Properties menu item. The Default Project Properties dialog box appears.
  2. Press the Libraries button. The Available java libraries dialog box appears.
  3. Press the New button.
  4. Type Multilizer 1.1 in the Name field.
  5. Type the <mldir>\multilizer.jar in the Class path.
  6. If you have the source code, type <mldir> in the Source path.
  7. Type the <mldir>\docs in the Class path.
  8. Press OK to close the Available java libraries dialog box.
  9. Press the Add button. The Select a Java library dialog box appears.
  10. Select Multilizer 1.1 and press OK.
  11. Press OK to close the Default Project Properties dialog.

2. Install Multilizer Beans to the component palette

In order to use a Bean in the IDE you have to install it to the component palette.

To install Multilizer Beans to the component palette:

  1. Choose Tools | Configure Palette menu item. A Palette Properties dialog box appears.
  2. Press the Add button. A Add Page dialog box appears.
  3. Type Multilizer and press the OK button to close the Add Page dialog box.
  4. Select the Add from Archive tab sheet.
  5. Press the Browse button. A Open dialog box appears.
  6. Select the <mldir>\multilizer.jar package file. Press the OK button to close the Open dialog box.
  7. Select all the Beans visible on the "Beans found from the archive:" list.
  8. Press the Install button to install the beans.
  9. Press the OK button to close the Palette Properties dialog box.

3. Create the project file

The sample applications included to the Multilizer are standard Java applications. They are not JBuilder specific. To use the sample applications you have to create a JBuilder project for each application.

To create a project for Dcalc:

  1. Choose File | New Project menu item. A Project Wizard dialog box appears.
  2. Type <mldir>\samples\dcalc\dcalc.jpr into the File edit box.
  3. Press the Finish button to close the Project Wizard. JBuilder creates a new project for you.
  4. Press the + button. A File Open / Create dialog box appears.
  5. Choose Java Source in the Files of type combo box.
  6. Select the <mldir>\samples\dcalc\dcalc.java file. Press the Open button to close the Open / Create dialog box.
  7. Choose File | Save Project menu item to save to the project.
  8. Choose Run | Run "Dcalc" menu item to compile and run the application.