The Java interface / Advanced programming |
When using the Java™ interface, you can instruct fglrun or fglcomp to pass Java VM specific options during JNI initialization, by using the --java-option command line argument.
$ fglrun --java-option=-verbose:gc myprog.42r
$ fglrun --java-option=-verbose:gc --java-option=-esa myprog.42r
$ fglrun --java-option=-Djava.class.path=$FGLDIR/lib/fgl.jar:$MYCLASSPATH myprog.42r
Regarding class path specification, the java runtime or javac compiler provide the -cp or -classpath options but when loading the JVM library from fglrun or fglcomp, only -Djava.class.path option is supported by the JNI interface.