How to use

1. Execute program

(1) Tap a icon labeled "Mysaifu JVM" in "Programs" folder.
Input dialog is shown.


(2) Input dialog



Input following information.

When "Execute" button is tapped, the VM Window is shown and VM will be start.
When "Options..." button is tapped, The Options dialog is shown.
"Recent list" listbox displays recent class names and JAR file names.

(3) Options dialog

Options dialog has five pages.
Path page

Memory page


Properties page

Verifier page

If you select "ON", class file verifier is enabled. If you select "Off", verifier is disabled.

Misc. page

(4) VM Window

When JVM starts normally, the following screen is displayed.


When you tap "Exit" button, then stop the JVM.
When you tap "Show console..." button, then console screen is displayed.
Note:
If you want to hide this window, check "Hide VM window" in Misc. page.

(5) JVM list dialog


This dialog shows list of running JVMs. And you can exit or terminate specified JVMs.
When you tap "Exit" button, then stop the JVM.
When you tap "Reflesh" button, list of JVMs is updated.
When you tap "OK", this dialog is closed.

(6) Console screen

Console screen is associated with System.in, System.out and System.err

2. Command line options

 You can use command line options to specify class name, heap size etc.
Command line format is:

jvm.exe [options] classname [arg1, arg2, ...]

For example


Following options can be used.
Format Description Examples
-cp <classpath>
or
-classpath <classpath>
Specify the system classpath.
Please enclose the entire path name with double quart ("), when the blank is included in the path name.
The delimiter of path is semicolon (;).
To specify \My Documents\classes and \apps for the system classpath.

-cp "\My Documents\classes;\apps"
-jar filename Execute jarfile. Classpath option is ignored. Execute Test.jar
-jar Test.jar
-ea
or
-enableassertions
Enable assertions. To enable assertions.
-ea
-da
or
-disableassertions
Disable assertions. To disable assertions.
-da
-Dkey=value Specify system property. Set system property file.encoding to "UTF-16LE".
-Dfile.encoding=UTF-16LE
-verbose:gc Output GC log to console.
-setcwd current directory Specify current directory.
Set the current directory "\Temp":
-setcwd "\Temp"
-Xmx<size> where <size> is the amount of maximum memory Java objects use. (2M is 2 megabytes, 128K is 128K bytes, 10000 is 10000 bytes). Set max heap size to 10MB

-Xmx10M
-Xloggc:<file> Output garbage collection event to file. Output to "\gc.log"

-Xloggc:\gc.log
-Xbootclasspath:<bootclasspath> Specify the boot classpath.
Please enclose the entire path name with double quart ("), when the blank is included in the path name. The delimiter of path is semicolon (;). Default value is \Program Files\Mysaifu JVM\lib\rt.jar.
Set bootclasspath "\CF Card\rt.jar":
-Xbootclasspath:"\CF Card\rt.jar"
-Xconsole Open the Console screen.
-Xlogfile:file Output console log to file.
-Xhidevmwindow Hides VM window.
-Xss Set native stack size of each thread. -Xss600K
-Xoss Set java stack size of each thread. -Xoss10K
When command line option specified, No Input dialog is displayed.