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

Previous
Previous
 
Next
Next
 

Beta Draft: 2014-03-25

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.

Direct Modification of 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), then only Java will be rebooted. However, if the "vmconfig.reboot_type" property is set to "hard" then the board will be rebooted. Note that the "vmconfig.reboot_type" property also affects Device Access 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.