B Configuring the Java Runtime Properties
This appendix describes how to change the value of a property that affects Java's configuration or behavior at runtime.
The appendix contains the following sections:
Editing 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:
-
Stop the Java runtime on the Raspberry Pi board.
-
Open the
jwc_properties.ini
that is a part of the Oracle Java ME Embedded bundle (or download it from the board), find the property that should be changed, and modify its value. -
Copy the modified version of the
jwc_properties.ini
file to the/bin
directory on the Raspberry Pi board using thesftp
client program. -
Restart Java on the Raspberry Pi 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.
-
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.