BACK HOME NEXT
4. Executing Java Applications

JV-Lite2 Personal Edition enables executing Java applications.

Starting Java Application
You can start a Java application with either of followings:

1. Command line
2. Jax file

To start a Java application, you have to create a short-cut file for Pocket PC.
Detailed instructions are shown below.


1. Command Line
Create a short-cut file containing a command line on PC. Copy it to a directory such as "/Windows/Start Menu".
The format of command line is as follows:

FORMAT:
jvlite [options] <Class Name> Arg1 Arg2...
Table 1. Command Line Format
ParameterDescription
-classpathClass path
-D[key]=valueSystem properties
-XcurdirCurrent directory after starting up

Refer to "HelloApp.lnk" under the directory "\My Documents\LVLite2Demo" on Pocket PC for further details.


2. Jax File
You can store parameters also in a file, instead of entering them in a command line.
When you have to enter long command lines (such as setting many system properties), storing them in a Jax file may be convenient.
Table 2. Jax File Format (Application)
ParameterDescription
appname_enApplication name (English)
app_typeApplication type. Specify "0" for a Java application.
classpathClass path
args tagParameters to pass to the application. Specify one parameter value per line.
sys_props tagSystem properties to pass to the application. The format is [key]=[value]. Specify one system property per line.

Refer to the sample "hello.jax" under the directory "\My Documents\JVLite2Demo" on Pocket PC for further details.


Create a short-cut file on PC. The file should contain a command line with the Jax file path. Copy it to a directory such as "/Windows/Start Menu". In a command line, -Xcurdir (setting the current directory) is valid only if it is specified before -Xjax. Other parameters are invalid.
Refer to the sample "HelloJax.lnk" under the directory "\My Documents\JVLite2Demo" on Pocket PC for further details.


:::: BACK :::: HOME :::: NEXT ::::
Copyright (C) 2002-2003 ACCESS CO., LTD.