Java Reference
In-Depth Information
Table C-2. ( continued )
java.net
java.time.format
javax.net
java.nio
java.time.temporal
javax.net.ssl
java.nio.channels
java.time.zone
javax.script
java.nio.channels.spi
java.util
javax.security.auth
java.nio.charset
java.util.concurrent
javax.security.auth.
callback
java.nio.charset.spi
java.util.concurrent.atomic
javax.security.auth.login
java.nio.file
java.util.concurrent.locks
javax.security.auth.spi
java.nio.file.attribute
java.util.function
javax.security.auth.x500
java.nio.file.spi
java.util.jar
javax.security.cert
java.security
java.util.logging
The JDK 8 contains several enhancements to development tools to support developing applications targeting a
specific compact profile. It has also added new tools such as jdeps to analyze the Java source code for dependencies
on compact profiles. I will discuss those enhancements in subsequent sections.
Before the Java SE Embedded 8, different JRE bundles were made available for downloads targeting different
embedded platforms for small devices. Beginning Java SE Embedded 8, Oracle does not provide JRE bundles for
downloads; rather, it provides Java development kits for Java SE Embedded 8 (also called EJDK 8) that enable you to
create custom JRE bundles containing a specific compact profile on the specific embedded platform. I will discuss
EJDK 8 in detail in the “Creating Custom JREs using the EJDK” section.
Enhancement in the javac Command
In JDK 8, you can compile source code targeting one of the compact profiles or the full JRE. The option -profile is
used with the javac command to specify one of the compact profiles: compact1 , compact2 , or compact3 . Absence of
this option assumes the full JRE. The javac command checks whether the APIs used in the source code are available
in the specified profile. The following command compiles Welcome.java targeting the compact1 profile:
javac -profile compact1 Welcome.java
If you are using the NetBeans IDE to develop your Java application, you can choose the profile option for the Java
compiler in the project properties dialog as shown in Figure C-1 . To open the project properties dialog, right-click the
project and select the Properties option. Select one of the profiles in the Profiles drop-down field.
 
 
Search WWH ::




Custom Search