A Simple VME Application
Follow the steps below to create, compile, and run
a simple Java program to read and write a VME register.
Create the Java Source file
Using your favorite editor, create the file
VMETest.java or
just save the link using a browser.
This program will write then read address offset 0
of a module specified on the command line.
Compile the Source File
First, set up the Java Development Kit and the FISION VME library.
On the B0 unix cluster, issue the commands:
setup jdk 1.1.1
setup fision
Then, compile the program:
javac VMETest.java
When compilation is complete, the file VMETest.class will
appear in the current directory.
Run the Program
To run the program, issue the command:
java VMETest b0ts01 18
(Substitute a valid MVME-162 node name and occupied VME slot
for the last two parameters).