BACK HOME NEXT
5. Using Applet Viewer

JV-Lite2 Personal Edition offers the applet viewer function that allows you to run applet without using a browser.
By launching the applet viewer, a fixed full-screen window is created and applets are located within the window. Since multiple applet shares one virtual machine process on the applet viewer, it needs less system resources comparing to running real applications. Note that accessing to the local resources is limited because the security manager for applet is applied.
To modify the security setting for individual applet, modify the file "java.policy".


Setting Applet Viewer
You have to create a Jax file before using the applet viewer, and then create a short-cut file for Pocket PC.

Table 1. Jax File Format (Applet)
ParameterDescription
appname_enApplication name (English)
venderDomain name of the program vendor
app_typeApplication type. Specify "0" for a Java application, "1" for an applet.
mainclassA class name to start for a Java application, applet class name for an applet.
classpathClass path. The path must be specified in the URL format (also for a local file).
applet_widthApplet width
applet_heightApplet height
applet_param tagApplet parameter. To specify a Jar file, use the key name "archive".

Refer to the sample "jvcalc.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". Refer to the sample "calculator.lnk" under the directory "\My Documents\JVLite2Demo" on Pocket PC for further details.



Creating Package
You can create a package to automate the processes above for applets and applications.
Using the package, you can install an applet with the program "JVLiteSetup".

1. Creating a Jar file
Create a Jar file for the applet.

2. Creating a Jax file
The format is same as that of the applet viewer and application, with 2 notes:

  1. Environment variable "$" (INSTALLPATH) is available for "classpath". The package will be installed to the specified path by JVLiteSetup. Use the variable to specify "classpath".
  2. The extension of file name must be "jax". The rest part of the file name must be identical to the Jaz file (see below).

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

3. Creating a Jaz File
Compress the Jar and Jax files in the Zip format and rename the extension to "jaz".
Refer to the sample "subway.jax" under the directory "\My Documents\JVLite2Demo" on Pocket PC for further details.

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