Visual Café
The following three sections describe how to install MULTILIZER to Visual Café 2.x and
how to compile and run the Dcalc sample application.
1. Add Multilizer Package
Visual Cafe needs to know where the packages are located. This is similar to the
CLASSPATH of Java VM. Visual Cafe gets its class path information from this file: <vcdir>\Bin\sc.ini
.
To add Multilizer package to the class path:
- Open
<vcdir>\Bin\sc.ini
to a text editor.
- Find the line beginning with
CLASSPATH=
.
- Add
;<mldir>\multilizer.jar
to the end of the line.
- Save the file.
You also have to add the package to the Visual Café's library.
To add Multilizer package to the library:
- Open any project. (Choose File | Open)
- Choose Insert | Component into Libary. A Open dialog box appears.
- Select the
<mldir>\multilizer.jar
package file. Press the OK button
to close the Open dialog box.
2. Install Multilizer Beans to the component palette
Install Multilizer Beans to the component palette:
- Choose Tools | Environment Options. A Environment Options dialog box appears..
- Choose the Component Palette tab.
- Press teh New Group button.
- In the edit box, type "Multilizer"
- From the Available components, open the multilizer tree.
- Select the Translator bean. Press the Add button to add the bean to the palette.
- Repeat 6 to every other Multilizer bean.
- Press to OK button to close the Environment Options dialog box.
3. Create the project file
Create a new project for Dcalc:
- Choose File | New Project. A New Project dialog box appears.
- Choose Empty Project.
- Press the OK button to close the New Project dialog box.
- From the Project window, choose the Files tab.
- Right-click the Project window.
- Choose Insert / Remove Files. A Project Files dialog box appears.
- From the
<mldir>\samples\dcalc
select the dcalc.java
, MainFrame.java
,
BinaryMainFrame.java
, TextMainFrame.java
, ServerMainFrame.java
and DatabaseMainFrame.java
files.
- Press the Add button to add the files to the project.
- Press the OK button to close the Project Files dialog box.
- Choose Project | Execute to run the application.
If you saved the project to another directory but the <mldir>\samples\dcalc
you have to add the project directories:
- Choose Project | Options. A Project Options dialog box appears.
- Choose Directories tab.
- Press the <- button.
- Press the ... button. A Choose Folder dialog box appears.
- Choose
<mldir>\samples\dcalc
directory. Press the OK button to close
the dialog box.
- Press to OK button to close the Project OPtions dialog.