Create your Hello World application, i.e. create a file HelloWorld.java
with:
public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello, World");
}
}
Compile HelloWorld.java against the OVM runtime libraries:
$ javac -target 1.1 \
-bootclasspath OVM-JAR-DIR/ovm_rt_user.jar \
HelloWorld.java
The OVM-JAR-DIR depends on where you built ovm and where you
installed it.
OVM-BIN-DIR/src/syslib/user.
make install then OVM-JAR-DIR is:
OVM-INSTALL-DIR/ovm/classes.
NOTE: It is a current limitation with ovm that all .class files
are generated with the format defined by the javac
-target 1.1 option. Failure to do this may result in runtime
exceptions, or crashes, due to missing fields or methods.