Skip Headers
Oracle® Java ME Embedded Getting Started Guide for the Reference Platform (Qualcomm IoE)
Release 8
E48513-03
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

B Configuring the Java Runtime Properties

There are several ways to change the value of a property that affects Java's configuration or behavior at runtime.

Modifying the jwc_properties.ini File

The jwc_properties.ini file contains all the properties that affect Java configuration and behavior at runtime. In order to edit this file, do the following:

  1. Open the jwc_properties.ini that is a part of the Oracle Java ME Embedded bundle (or download it from the board using the Brew MP SDK Loader tool), find the property that should be changed, and modify its value.

  2. Copy the modified version of the jwc_properties.ini file to the /sys/mod/java directory on the Qualcomm IoE board using the Brew MP SDK Loader tool.

  3. If there is a jwc_properties.inix file located in this directory, delete it.

  4. Restart Java on the Qualcomm IoE board.

Using the CLI set-property Command

To modify a property using the set-property command in the command-line interface (CLI), do the following.

  1. Connect to the board using command-line interface (CLI)

  2. Execute the "set-property <property_name> <desired_property_value>" command.

  3. Restart Java on the board.

Note, that by executing the "set-property" command, the jwc_properties.ini file is always updated automatically.

Using CLI Commands to Alter Network-Related Settings

To alter the network-related settings, do the following:

  1. Connect to the board using command-line interface (CLI)

  2. Execute a command that starts with the prefix "net" to apply a network-related change.

  3. Apply the network-related change and restart Java.

Restarting Java on the Qualcomm IoE Board

You can use any of the following methods to restart Java on the Qualcomm IoE board.

  1. Use the CLI "shutdown -r" command. If the "vmconfig.reboot_type" property is set to "soft" (the default) and the reboot_java application has been deployed on your Qualcomm IoE board, then only Java will be rebooted. Otherwise, if the "vmconfig.reboot_type" property is set to "hard" or there is no reboot_java application deployed, then the board will be rebooted. Note that the "vmconfig.reboot_type" property also affects Device I/O API watchdog's reboot type.

  2. Using the CLI "net-reconnect" command. This command reconfigures the network and performs a soft Java reboot.

  3. Press the "RESET KEY" located on the board, or cycle the power to the board.