Oracle® Java ME Embedded Getting Started Guide for the Reference Platform (Qualcomm IoE) Release 8 EA 2 E48513-01 |
|
Previous |
Next |
Beta Draft: 2014-03-25
There are several ways to change the value of a property that affects Java's configuration or behavior at runtime.
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:
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.
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.
If there is a jwc_properties.inix
file located in this directory, delete it.
Restart Java on the Qualcomm IoE board.
To modify a property using the set-property
command in the command-line interface (CLI), do the following.
Connect to the board using command-line interface (CLI)
Execute the "set-property
<property_name> <desired_property_value>" command.
Restart Java on the board.
Note, that by executing the "set-property
" command, the jwc_properties.ini
file is always updated automatically.
To alter the network-related settings, do the following:
Connect to the board using command-line interface (CLI)
Execute a command that starts with the prefix "net
" to apply a network-related change.
Apply the network-related change and restart Java.
You can use any of the following methods to restart Java on the Qualcomm IoE board.
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.
Using the CLI "net-reconnect
" command. This command reconfigures the network and performs a soft Java reboot.
Press the "RESET KEY" located on the board, or cycle the power to the board.