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


Input following information.
- Class name - Enter Java application class name or jar file name to execute.
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
- Command line arguments - Enter arguments for Java application.
- CLASSPATH - Enter system classpath. Default value is
\and\My Documents. - Current directory - Enter current directory. Default value is
\(root directory).

- Max heap size - Enter max heap size.
Properties page

- Add - Shows system property editor.
- Edit - Shows system property editor. Initial value of editor is current selection.
- Delete - Delete current selection.
Verifier page

If you select "ON", class file verifier is enabled. If you select "Off", verifier is disabled.
- Console logfile - Specify console log file name.
- Bootclasspath - Enter bootstrap classpath.
- Enable assertions - Enable/Disable assertions.
- Verbose:gc - Output GC log to console.
- Hide VM window - Hides 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.

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.
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
jvm.exe -cp "\;\My Documents" Test arg1 arg2Following 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
|
-eaor -enableassertions |
Enable assertions. | To enable assertions.
-ea |
-daor -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
|
How to use