|Oracle® Java ME Embedded Reference Platform Release Notes (Raspberry Pi)
Release 8 EA 2
Beta Draft: 2014-02-05
Reference Platform Release Notes (Raspberry Pi)
Release 8 EA 2
The Oracle Java ME Embedded version 8 software for the Raspberry Pi platform is a ready-to-run binary for use with an off-the-shelf Raspberry Pi board. The Oracle Java ME Embedded software employs an optimized platform stack for small embedded devices, which includes the Connected Limited Device Configuration (CLDC) HotSpot Implementation (Java Virtual Machine) Version 8, the Micro Edition Embedded Profile (MEEP) application environment, the Generic Connection Framework (GCF) API, and enhanced support for various Java Specification Requests (JSRs).
The following features are included in the Oracle Java ME Embedded software:
Support for Device Access APIs, which provide enhanced device controls and improved input/output (IO) for small embedded devices, including the following new feature:
Windowed Watchdog Timer
Ongoing support for the following JSRs:
JSR 360 CLDC 8
JSR 360 GCF API
JSR 361 Java ME Embedded Profile
The Developer Agent program including
Command-line interface (CLI)
File system commands
Memory Monitoring is fully supported in this release and provides
contents of the Java heap
a call context for each object at the moment of its creation
CPU Profiling is fully enabled in this release and provides
means to identify bottlenecks in applications
the following data for each method: an execution duration, exact number of calls, and a method context
Network Monitoring support
This is an Early Access release with a limited scope of features and testing.
The Oracle Java ME Embedded software for the reference board platform includes an CLDC implementation with a high-performance Java virtual machine that can run IMlets and access input-output ports. This runtime is optimized for the reference board platform.
The Getting Started Guide for the Reference Platform (Raspberry Pi) describes how to install the Raspbian distribution on the SD card, how to connect to the board from the development host computer and how to install, run, and debug IMlets on the board.
Observe the following important notes before running the Oracle Java ME Embedded software on the board:
This release does not support running multiple instances of its executable. So avoid simultaneously starting several instances of any of scripts or executable files, regardless of whether these are from the same installation of the software or from different installations. The software can run multiple IMlets in the same instance of a virtual machine so you do not need to start multiple VMs to run several applications at a time. Not following this precaution can result in malfunctions with uninformative error messages and might lead to corruption of the installation files.
The Oracle Java ME Embedded Release 8 EA 2 software installation requires an execution model that makes certain networked resources available. These required resources might include, but are not limited to, a variety of communication capabilities between the product's installed components.
It is extremely important to note that the product's installation and runtime system is fundamentally a developer system not specifically designed to guard against any malicious attacks from outside intruders. Given this, the product's architecture can present an insecure operating environment to the installation file system itself, as well as its runtime environment, during execution. For this reason, it is critically important to observe the precautions outlined in the following security guidelines when installing and running the software.
The security-related functionality of a final developed application for release into the field is supported by the available components of the Oracle Java ME Embedded software stack incorporated by the developer into the application. The security precautions required by applications in the field are beyond the scope of these recommendations, but must nonetheless be observed by the application developer.
To maintain optimum network security, the software package can be installed and run in a ”closed” network operating environment, meaning the software system is not connected directly to the Internet, or to a company Intranet environment that could introduce unwanted exposure to malicious intrusion. This is the ideal secure operating environment whenever the application under development does not require it.
An example of a requirement for an Internet connection is when the system must communicate with a wireless network over the Internet to fully execute the application under development. Whether or not an Internet connection is required depends on the particular Java ME application running in the development environment. For example, some Java ME applications can use an HTTP connection. If the environment is open to any network access you must always observe the following precautions to protect valuable resources from malicious intrusion:
Locate the development environment behind a secure firewall that strictly limits unauthorized network access to its file system and services. Limit access privileges to those that are required for development while allowing all the bi-directional local network communications that are necessary for the application's functionality. The firewall configuration must support these requirements to run the software while also addressing them from a security standpoint.
Follow the principle of ”least privilege” by assigning the minimum set of system access permissions required for installation and execution of the software.
Do not store any data sensitive information on the same file system that is hosting the installation.
To maintain the maximum level of security, make sure the operating system patches are up-to-date on any host machines in the development environment.
The Oracle Java ME Embedded software distribution bundle contains security certificates that are needed for testing purposes during development of products for final release to customers. Some of these certificates are self-signed security certificates generated by Oracle that are mapped to privileged security domains. IMlets or MIDlets signed by these certificates get high privileges to access restricted APIs, and so these certificates present a security vulnerability if they are released to end users on a customer's device. Care should be taken to remove these certificates after final testing of the product is completed when the product is being prepared for release to end users. This does not apply to certificates issued by universally recognized certificate authorities (CAs), because these are used only for signature verification and do not present a vulnerability.
The CLI is incorporated in the Development Agent, which communicates with a device via an unsecured protocol. The Developer Agent is a Java SE application that can be reverse engineered to tamper with or to get information about the communication protocol, which in turn might be used by an untrusted entity to manipulate the device. If you decide to implement the Developer Agent in any product deployment, it is your responsibility to incorporate adequate security measures around the Developer Agent communication channel. This channel uses TCP port 2201 on the Raspberry Pi device for the communication.
For generic bugs in this release of the Oracle Java ME SDK that might affect the Raspberry Pi platform, see the Oracle Java ME Software Development Kit Release Notes.
The following are known bugs in this release of the Oracle Java ME Embedded software:
[Network] IOException while sending UDP broadcast message
Trying to send a broadcast message over DatagramConnection throws
IOException with error code 10013 on Win32 and Linux platforms.
MEEP-TCK: Two api/java_util/midp_overview/Service/index.html#Service tests fail
Unexpected Throwable (in Service0013): java.util.ServiceConfigurationError: Provider could not be instantiated: javasoft.sqe.tests.api.java.util.midp_overview.Service.StubServiceProvider01
Unexpected Throwable (in Service0014): java.util.ServiceConfigurationError: Provider could not be instantiated: javasoft.sqe.tests.api.java.util.midp_overview.Service.StubServiceProvider03_1
The Probe test results in I2C, SPI, UART unavailability
If you start the Probe test and then try to open and use any of I2C, SPI, and UART peripherals,
PeripheralNotAvailableException is thrown. Restart the Raspberry Pi board to make the listed peripherals available again.
The following documentation is included with this release of the Oracle Java ME Embedded software. See
All (This document)
Demonstrates how to install, run, and troubleshoot the Oracle Java ME Embedded software on the Raspberry Pi platform.
Getting Started Guide for the Reference Platform (Raspberry Pi)
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at
Oracle customers have access to electronic support through My Oracle Support. For information, visit
http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info or visit
http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs if you are hearing impaired.
Oracle Java ME Embedded, Reference Platform Release Notes (Raspberry Pi), Release 8 EA 2
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.
This documentation is in prerelease status and is intended for demonstration and preliminary use only. It may not be specific to the hardware on which you are using the software. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to this documentation and will not be responsible for any loss, costs, or damages incurred due to the use of this documentation.