Importing MaxBase beans into VisualAge for Java for Win32

  1. Start VisualAge for Java, and create a new project (or use an existing one if you need MaxBase there).

  2. Select the project and choose "import" from the File menu. A SmartGuide will appear.

  3. Choose "import from JAR file (including resources)" from the radio button list, and browse your way to the MBASE.JAR file you found in the original MaxBase distribution file. Click on "finish" when you are done.

  4. Visual Age for Java will then start importing the classes and resources inside the JAR, and it will take a while. When the import process will be completed, a new dialog window will pop up, asking where to store the nrio.MaxBase, nrio.JRXDBClient, nrio.reports.LineViewMockup nrio.JRXDbase and nrio.reports.PageLayout beans. Choose a category, or create one, and click on 'Ok'.

  5. Your MaxBase Java Beans are ready for use! Congrats!

Importing MaxBase beans into VisualAge for Java for OS/2
(subtitle: the OS/2 version of VAge Java doesn't like JAR files)

  1. Create a directory, and unzip mbase.jar there (InfoZip's freeware Unzip is just fine for the task).

  2. Start VisualAge for Java, and create a new project (or use an existing one if you need MaxBase there).

  3. Select the project and choose "import" from the File menu. A SmartGuide will appear.

  4. Choose "Entire directory (including resources)" and browse into the directory where you unzipped mbase.jar into.

  5. Click on "Next".

  6. Uncheck "skip .class files" checkbox and press "Finish".

  7. After several minutes (the import takes a looong time to execute) you'll have the entire suite imported into VA for Java.

  8. Now you need to go into Visual Composition editor and add to the palette (via the "Options" menu, "Modify palette" submenu, "Add category" and "Add new bean" menu items) the following beans:

    nrio.MaxBase
    nrio.JRXDBase
    nrio.JRXDBClient
    nrio.reports.LineViewMockup

    nrio.reports.PageLayout

    After you've done this, it's exactly as you imported mbase.jar, only it takes more time and some messing around. Hope that IBM will fix its .jar import routines in the near future..

NOTE: A number of packages will be added to the chosen project, such as com.Taligent.widget, nrio, netrexx etc: this is normal, since MaxBase is a fairly complex Java Bean, and uses other JavaBeans and classes.


Max Marsiglietti © 1997
Layout and artwork Andrea Resmini 1997