Java SE for Embedded Use

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

   Download Java SE for Embedded Now         FAQ
   Customers and Partners         Java Real Time System
 

News

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:

  • Java SE for Embedded 5 for Linux on PowerPC.

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.


Community

 
Java SE for Embedded
Did you know that there is a Java SE for Embedded community in place? Take a look at what's going on with the wide range of vendors and technologists in this space.
 
Contribute to Java SE 7!
Sun releases weekly snapshots of the complete source, binaries, and Javadoc for Java SE 7. You can review or contribute code as it is being developed.
 
Java SE Community Development Model
With the Java SE 6 release, Sun is making the development of the JDK more transparent, creating opportunities for collaboration and early feedback with the worldwide developer community. Now, you can directly contribute to the implementation of the JDK!
 
Need Developer Help?
Try our Free Developer Help Beta program. Get expert assistance from Sun engineers when using our technologies.
 
Need more info?

If you need more information on our Java SE for Embedded products, engineering services or support programs, please contact us.

 

FAQ

 

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.

 
Java SE for Embedded FAQ
  1. What are the system requirements for Java SE for Embedded?
  2. How is Java SE for Embedded functionally different from standard Java SE?
  3. How does it differ from Java ME?
  4. What platforms does Java SE for Embedded support?
  5. I don't see the platform I need supported, what can I do?
  6. What are the RAM and ROM/Disk requirements for Java SE for Embedded?
  7. How does Java SE for Embedded compare in performance with C/C++?
  8. How do I call my native drivers and applications?
  9. How do I debug my Java application for embedded use?
  10. How is Java SE for Embedded licensed?
  11. Does deploying Java SE for embedded devices or purposes require a royalty?
  12. How do I determine how much royalty I'll owe on my embedded offering that includes Java SE?
  13. Do I have to pay to develop my embedded application for Java SE?
  14. How do I get started?

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.

SE Functionality Specific for Embedded

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
Area
Memory
Content
Allocation
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
Area
Command-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:

  1. Download - Starting from the downloads page, choose the latest Java SE release from either embedded-only platforms or all (Embedded, Desktop, Server) Java SE platforms. Please contact us if you don't see what you need.
  2. Develop - Try Java SE on your platform. Develop your embedded application with it - development is free. If you're new to Java, there's a lot of help including our tutorials, blueprints, documentation and training as well as extensive resources from the Java community.
  3. Deploy - Ready to deploy? Contact us to find out about our licensing, support and partner programs.
Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve

Java 8 banner (182) IoT banner RHS (160)