Search This Blog

Thursday, November 22, 2018

Java SE 8 introduces subset profiles of the Java SE platform specification that can be used to deploy and run applications that do not require the entire platform.

Three profiles that have been defined so far are named compact1compact2, and compact3. Each profile specifies a particular set of Java API packages and contains all of the APIs in profiles smaller than itself: compact1 is a subset of compact2, which is a subset of compact3, which in its turn is a subset of the full JRE. The table below lists packages that are comprised in each profile.
Compact1Compact2Compact3Full JRE
  • java.lang
  • java.io
  • java.nio
  • java.text
  • java.math
  • java.net
  • javax.net
  • java.util
  • java.util.logging
  • java.security
  • javax.crypto
  • javax.security
compact1 plus the following:
  • java.sql
  • javax.sql
  • javax.xml
  • org.w3c.dom
  • org.xml.sax
  • java.rmi
  • javax.rmi
  • javax.transaction
compact2 plus the following:
  • java.lang.management
  • javax.management
  • javax.naming
  • javax.sql.rowset
  • javax.security.auth.kerberos
  • org.ietf.jgss
  • javax.script
  • javax.xml.crypto
  • java.util.prefs
  • javax.security.sasl
  • javax.security.acl
  • java.lang.instrument
  • javax.annotation.processing
  • javax.lang.model
  • javax.lang.model.element
  • javax.lang.model.type
  • javax.lang.model.util
  • javax.tools
compact3 plus the following:
  • corba
  • awt
  • swing