Java SE Embedded 8 introduces a new concept called, Compact Profiles, which enable reduced memory footprint for applications that do not require the entire Java platform. The Java SE 8 javac -profile option, which allows the application to be compiled using one of the new supported profiles. There are three supported profiles: compact1 compact2 and compact3 . These are additive layers, so that each Profile contains all of the APIs in the previous smaller Compact Profiles and adds appropriate APIs on top. The compact profiles feature is useful in small devices.
A typical way to use jdeps is to use "-P" to print out the profiles that are being used by your app so that you can see which Compact Profile you must use to execute your application.
For example, here is a typical run of jdeps to discover which Compact Profile is the minimal that must be used to run the program:
% jdeps -P HelloWorld.class
HelloWorld.class -> /net/test11.us.example.com/export/java-re/jdk/8/ea/b124/binaries/linux-i586/jre/lib/rt.jar
<unnamed> (HelloWorld.class)
-> java.io compact1
-> java.lang compact1
Read full article from Java SE Embedded 8 Compact Profiles Overview
A typical way to use jdeps is to use "-P" to print out the profiles that are being used by your app so that you can see which Compact Profile you must use to execute your application.
For example, here is a typical run of jdeps to discover which Compact Profile is the minimal that must be used to run the program:
% jdeps -P HelloWorld.class
HelloWorld.class -> /net/test11.us.example.com/export/java-re/jdk/8/ea/b124/binaries/linux-i586/jre/lib/rt.jar
<unnamed> (HelloWorld.class)
-> java.io compact1
-> java.lang compact1
Read full article from Java SE Embedded 8 Compact Profiles Overview
No comments:
Post a Comment