|
Importing
MaxBase beans into VisualAge for Java for Win32
Start VisualAge for Java, and
create a new project (or use an existing one if
you need MaxBase there).
Select the project and choose
"import" from the File menu. A
SmartGuide will appear.
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.
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'.
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)
Create a directory, and unzip
mbase.jar there (InfoZip's freeware Unzip is just
fine for the task).
Start VisualAge for Java, and
create a new project (or use an existing one if
you need MaxBase there).
Select the project and choose
"import" from the File menu. A
SmartGuide will appear.
Choose "Entire directory
(including resources)" and browse into the
directory where you unzipped mbase.jar into.
Click on "Next".
Uncheck "skip .class
files" checkbox and press
"Finish".
After several minutes (the import
takes a looong time to execute) you'll have the
entire suite imported into VA for Java.
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.
|