Oracle® Java ME Embedded Getting Started Guide for the Reference Platform (Qualcomm IoE) Release 3.4 E47914-01 |
|
![]() Previous |
![]() Next |
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 setprop
command in the command-line interface (CLI), do the following.
Connect to the board using command-line interface (CLI)
Execute the "sysmenu on
" command
Execute the "setprop
<property_name> <desired_property_value>
Execute the "saveprops
" command
Restart Java on the board.
Note, that by executing the "setprop
" and "saveprops
" commands, 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 the "sysmenu on
" command
Execute a command that starts with 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.
For example, here are two methods to change the tooling mode from serial to network. The first method contains the following steps.
Open the jwc_properties.ini
file and set the "com.oracle.tooling.mode
" property to "network
".
Copy the modified version of the jwc_properties.ini
file to the /sys/mod/java
directory using the Brew MP SDK Loader application.
If there is a jwc_properties.inix
file located in this directory, then remove it.
Reset the board using the "RESET KEY".
The second method contains the following steps.
Connect to the board using command-line interface (CLI).
Execute the "sysmenu on
" command.
Execute a "setprop com.oracle.tooling.mode network
" command.
Execute the "saveprops
" command.
Execute a "shutdown -r
" command.