By Jim Connors-Oracle on Aug 12, 2013
Following up on an article introducing compact profiles, the video that follows demonstrates how this new feature in the upcoming Java 8 release can be utilized. The video:
- Describes the compact profile feature and the rationale for its creation.
- Shows how to use the new jrecreate utility to generate compact profiles that can be readily deployed.
- Demonstrates that even the smallest of profiles (less than 11MB) is robust enough to support very popular and important software frameworks like OSGi.
The software demonstrated is in early access. For those interested in trying it out before the formal release of Java 8, there are two options:
- Members of the Oracle Partner Network (OPN) with a gold membership or higher can download the early access Java 8 binaries of Java SE-Embedded shown here. For those not at this level, it may still be possible to get early access software, but it will require a qualification process beforehand.
- It's not as intimidating as it sounds, you can pull down the source code for OpenJDK 8, and build it yourself. By default, compact profiles are not built, but this forum post shows you how. The reference platform for this software is linux/x86. Functionally, the generated compact profiles will contain the pared down modules for each compact profile, but you'll find the footprint for each to be much larger than the ones demonstrated in this video, as none of the Java SE-Embedded space optimizations are performed by default.
Not having any premium privileges on YouTube, the maximum allowed length of a video is 15 minutes. There's actually lots more to talk about with compact profiles, including enhancements to java tools and utilities (javac, jar, jdeps, and the java command itself) that have incorporated intelligence for dealing with profiles.
Hmm. Maybe there's an opportunity for a Compact Profiles Demonstrated Part II?