Java
Java SE
Overview
Using Java SE for Embedded enables you to develop highly functional, reliable, portable and secure applications for today's more powerful embedded systems. We offer a full range of products, services, and support that makes it easy for you to develop with Java SE for your embedded projects. When you're ready to deploy, we offer an innovative value-based pricing model that helps align royalty costs with your product pricing. Contact us for more information. » Read More
| |
| |
|
|
|
June 2010
Java SE for Embedded 6u10 (Build 42) on Linux ARMv5, v6 & v7 is now available for both
headless and headful configurations. Download the
free evaluation today!
October 2009
Eric Bruno's Blog - Java SE 6 Embedded for ARM Cortex-A9 Multi-core
June 2009
Sun and Qualcomm Collaboration Delivers Exceptional Java Performance on Smartbooks
May 2008
Get Java SE for Embedded running on all your devices:
Free evaluation copies available.
October 2007
JavaOne 2007 session
Deploying Java Platform, Standard Edition (Java SE) in Today's Embedded Devices
now available for online viewing.
October 2007
Embedded Java Hits the Road
Perrone Robotics and Team Jefferson rely on Java technology to power their fully autonomous vehicle, which is on its way to the DARPA Urban Challenge Semi-Finals.
Learn more about this exciting competition.
October 2007
Freescale Semiconductor and Sun Microsystems
announce plans for Java SE for Embedded for the PowerQUICC processor family.
If you need more information on our Java SE for Embedded products, engineering services or support programs, please contact us.
Java SE for Embedded offers the functionality, security, compliance, portability and robustness of Java SE for traditional desktop and server systems as well as specific features and support for the higher-end embedded market. The documentation of Java SE including the Java language, Hotspot VM, Libraries and Tools applies to Java SE for Embedded. Functionality that is specific to Java SE for Embedded is described below.
| |
Q: 1. What are the system requirements for Java SE for Embedded?
These are summarized on the systems requirements page.
Q: 2. How is Java SE for Embedded functionally different from standard Java SE?
Java SE for Embedded derives from Java SE. It can support the same platforms and functionality as Java SE. Additionally, it provides specific features and support for the embedded market. These embedded-specific features and support currently include additional platforms, small footprint JREs, headless configurations and memory optimizations. All Java SE for Embedded offerings are Java SE compliant.
| |
Embedded systems can differ from traditional Java SE Desktop and Server configurations in a few key areas. These include RAM, permanent local storage (Disk, ROM or Compact Flash), KVM resources (Keyboard, Video, Mouse) and platform support (CPU and OS). For each of these areas, Java SE for Embedded provides specific support for embedded devices:
Headless Support
Java SE for Embedded provides a Headless option to support embedded devices that do not have a display monitor, keyboard or mouse. The functionality to receive keyboard and mouse input and render on a display is removed. The rest of Java SE functionality is still available including the underlying graphics support that enables printing and binary file generation.Small Footprint JRE
Through additional compression and optional file removal, Java SE for Embedded can provide a reduced footprint JRE required by some embedded systems. The removed files include those not needed by headless as well as many others including tools, character converters and one of the JIT compilers. This reduction results in a JRE that is less than one-half the footprint of the full JRE - as low as 30MB for Java SE 5.0.JRE size is release and platform dependent, but here's an example using 5.0 Update 6 for Linux x86:
JRE ROM Footprint Full JRE installed 68 MB Small Footprint JRE installed 29.5MB
The Small Footprint JRE is still TCK compliant.
Memory Optimizations
Java SE for Embedded provides enhanced handling for embedded devices, through memory ergonomics and other modifications.Low Memory Ergonomics
On start-up in low memory environments, Java SE for Embedded can reduce the default size of VM memory allocations. This reduction is for the three largest memory areas allocated by the VM: the PermGen, Java Heap and Code Cache.The VM dynamically sets the size of the allocation based on a percentage of the physical memory available at start-up but limited by a cap:
Memory
AreaMemory
ContentAllocation
Pct Cap PermGen Java Class Data 50% 64MB Java Heap Read/Write Java Objects 50% 64MB Code Cache JIT compiled code 12% 32MB
As an example, upon starting up in an embedded device with 32MB physical memory, the VM will allocate 16MB for the PermGen, 16MB for the Java Heap and 4MB for the Code Cache.
The dynamic settings can be overriden using these flags:
Memory
AreaCommand-Line
Flag PermGen-XX:MaxPermSize=yy Java Heap-Xmxyy Code Cache-XX:ReservedCodeCacheSize=yy
Where yy is size in bytes e.g. -Xmx64m specifies a 64MB Java Heap.
Other Memory Savings
Java SE Embedded provides a 12MB RAM savings by eliminating the use of MMAP when loading jar files and removing a static table for threads.
Additional Platform Support
Java SE for Embedded supports the traditional Java SE desktop and server platforms. This includes:
CPU: x86, x64, SPARC 32-bit and 64-bit OS: Linux, Windows and Solaris
Additionally, it also supports platforms specific for embedded such as the ARM and PowerPC microprocessors. Please contact us if you don't see the platform you need.
Q: 3. How does it differ from Java ME?
Java ME and Java SE for Embedded address different segments of the embedded market. The Java ME CLDC and CDC offerings are designed for resource-limited devices including cell phones, handsets and media players. The APIs of CLDC and CDC are more limited than Java SE but enable these ME offerings to support devices with small footprints. Java SE for Embedded provides the rich functionality of Java SE and is targeted at higher-end embedded devices - generally, those devices with at least 32MB RAM and 32MB of ROM.
Q: 4. What platforms does Java SE for Embedded support?
Java SE for Embedded supports close to 30 different ISA/OS platforms. The hardware platforms include x86, x64, SPARC (32 and 64 bit), ARM and PowerPC. The OS platforms include Linux, Windows and Solaris. Many of these platforms are commonly supported by all Java SE (Embedded, Desktop and Server). The embedded-only platforms such as ARM, headless and small footprint JRE, are available through the Java SE for Embedded downloads page.
Q: 5. I don't see the platform I need supported, what can I do?
If your project has different hardware (cpu, memory) or OS requirements you can contact us. We provide specialized engineering services and can work with you to provide a solution.
Q: 6. What are the RAM and ROM/Disk requirements for Java SE for Embedded?
Memory footprint requirements are dependent on the platform (OS, swapping, etc), SE release, SE functionality (e.g. headless or not) and application. We generally recommend 32MB for RAM and 32MB for ROM/Disk/Flash but can support slightly smaller configurations.
Q: 7. How does Java SE for Embedded compare in performance with C/C++?
Though ultimately performance is application dependent, Java SE applications perform on par with C/C++ applications. Many third party tests have demonstrated Java to be equal or better than C/C++ performance. Java's dynamic just-in-time compilation and aggressive in-lining generates code that can be better optimized than static C/C++ compilation.
Q: 8. How do I call my native drivers and applications?
The Java SE specification provides an interface to native drivers and C or C++ functions called the Java Native Interface (JNI). JNI works by creating a Java-visible wrapper around the native code, a new header file to cross-reference the wrapper, and then a call from the Java program which allows parameters to be passed and received by the native code.
Q: 9. How do I debug my Java application for embedded use?
There is a full set of APIs and tools that enable you to debug your Java application. Both local and remote debugging is supported. There are also APIs, tools and resources for observability, management and performance profiling. A good starting point for all these activities is the Troubleshooting Java SE webpage.
Q: 10. How is Java SE for Embedded licensed?
Java SE is free to use for development of embedded applications. We provide affordable licensing for deploying Java SE in an embedded device or as part of a embedded-based system. Please contact us when you are ready to deploy or if you have already deployed but not sure you have the correct license.
Q: 11. Does deploying Java SE for embedded devices or purposes require a royalty?
Yes. Sun's license for Java SE enables it to be freely used for general purpose desktops or servers. If Java SE is bundled as part of a dedicated solution that involves or controls hardware of some kind, then it's likely an embedded application and is subject to modest royalty payments.
Q: 12. How do I determine how much royalty I'll owe on my embedded offering that includes Java SE?
Please contact us to set up an appointment with our specialized OEM sales team. They have the necessary information to determine the pricing for your product. Sun's embedded royalty model seeks to match royalty costs to the price/volume of your product so that you can keep costs low and use Java SE on the wide range of SE-capable products.
Q: 13. Do I have to pay to develop my embedded application for Java SE?
No - developing with Java SE for embedded or non-embedded purposes is free, as are the NetBeans tools best suited for the job. You can and should sign a royalty agreement with Sun during the development phase, but you do not owe any royalty payments until you actually ship your product.
Q: 14. How do I get started?
It's easy. There are 3 main steps: