Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK). See documentation
- The Core Planners: [email protected]
Binary package
Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.
To add core/corretto as a dependency, you can add one of the following to your plan file.
pkg_build_deps=(core/corretto)
pkg_deps=(core/corretto)
To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.
hab pkg install core/corretto --binlink
will add the following binaries to the PATH:
- /bin/jaotc
- /bin/jar
- /bin/jarsigner
- /bin/java
- /bin/javac
- /bin/javadoc
- /bin/javap
- /bin/jcmd
- /bin/jconsole
- /bin/jdb
- /bin/jdeprscan
- /bin/jdeps
- /bin/jfr
- /bin/jhsdb
- /bin/jimage
- /bin/jinfo
- /bin/jjs
- /bin/jlink
- /bin/jmap
- /bin/jmod
- /bin/jps
- /bin/jrunscript
- /bin/jshell
- /bin/jstack
- /bin/jstat
- /bin/jstatd
- /bin/keytool
- /bin/pack200
- /bin/rmic
- /bin/rmid
- /bin/rmiregistry
- /bin/serialver
- /bin/unpack200
For example:
$ hab pkg install core/corretto --binlink
...
...
✓ Installed core/corretto/11.0.8.10.1/20200715192651
★ Install of core/corretto/11.0.8.10.1/20200715192651 complete with 13 new packages installed.
» Binlinking javadoc from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked javadoc from core/corretto/11.0.8.10.1/20200715192651 to /bin/javadoc
» Binlinking keytool from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked keytool from core/corretto/11.0.8.10.1/20200715192651 to /bin/keytool
» Binlinking javac from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked javac from core/corretto/11.0.8.10.1/20200715192651 to /bin/javac
» Binlinking jdeps from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jdeps from core/corretto/11.0.8.10.1/20200715192651 to /bin/jdeps
» Binlinking jcmd from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jcmd from core/corretto/11.0.8.10.1/20200715192651 to /bin/jcmd
» Binlinking jjs from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jjs from core/corretto/11.0.8.10.1/20200715192651 to /bin/jjs
» Binlinking jmod from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jmod from core/corretto/11.0.8.10.1/20200715192651 to /bin/jmod
» Binlinking jconsole from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jconsole from core/corretto/11.0.8.10.1/20200715192651 to /bin/jconsole
» Binlinking jimage from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jimage from core/corretto/11.0.8.10.1/20200715192651 to /bin/jimage
» Binlinking jps from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jps from core/corretto/11.0.8.10.1/20200715192651 to /bin/jps
» Binlinking rmic from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked rmic from core/corretto/11.0.8.10.1/20200715192651 to /bin/rmic
» Binlinking jar from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jar from core/corretto/11.0.8.10.1/20200715192651 to /bin/jar
» Binlinking jlink from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jlink from core/corretto/11.0.8.10.1/20200715192651 to /bin/jlink
» Binlinking jstat from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jstat from core/corretto/11.0.8.10.1/20200715192651 to /bin/jstat
» Binlinking jinfo from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jinfo from core/corretto/11.0.8.10.1/20200715192651 to /bin/jinfo
» Binlinking jstack from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jstack from core/corretto/11.0.8.10.1/20200715192651 to /bin/jstack
» Binlinking jshell from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jshell from core/corretto/11.0.8.10.1/20200715192651 to /bin/jshell
» Binlinking unpack200 from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked unpack200 from core/corretto/11.0.8.10.1/20200715192651 to /bin/unpack200
» Binlinking jdb from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jdb from core/corretto/11.0.8.10.1/20200715192651 to /bin/jdb
» Binlinking jdeprscan from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jdeprscan from core/corretto/11.0.8.10.1/20200715192651 to /bin/jdeprscan
» Binlinking java from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked java from core/corretto/11.0.8.10.1/20200715192651 to /bin/java
» Binlinking rmiregistry from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked rmiregistry from core/corretto/11.0.8.10.1/20200715192651 to /bin/rmiregistry
» Binlinking jarsigner from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jarsigner from core/corretto/11.0.8.10.1/20200715192651 to /bin/jarsigner
» Binlinking jaotc from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jaotc from core/corretto/11.0.8.10.1/20200715192651 to /bin/jaotc
» Binlinking rmid from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked rmid from core/corretto/11.0.8.10.1/20200715192651 to /bin/rmid
» Binlinking jfr from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jfr from core/corretto/11.0.8.10.1/20200715192651 to /bin/jfr
» Binlinking jstatd from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jstatd from core/corretto/11.0.8.10.1/20200715192651 to /bin/jstatd
» Binlinking serialver from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked serialver from core/corretto/11.0.8.10.1/20200715192651 to /bin/serialver
» Binlinking pack200 from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked pack200 from core/corretto/11.0.8.10.1/20200715192651 to /bin/pack200
» Binlinking javap from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked javap from core/corretto/11.0.8.10.1/20200715192651 to /bin/javap
» Binlinking jrunscript from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jrunscript from core/corretto/11.0.8.10.1/20200715192651 to /bin/jrunscript
» Binlinking jhsdb from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jhsdb from core/corretto/11.0.8.10.1/20200715192651 to /bin/jhsdb
» Binlinking jmap from core/corretto/11.0.8.10.1/20200715192651 into /bin
★ Binlinked jmap from core/corretto/11.0.8.10.1/20200715192651 to /bin/jmap
[4][default:/src/corretto:0]#
You can now use the binary as normal. For example:
/bin/java -version
or java -version
$ java -version
openjdk version "11.0.8" 2020-07-14 LTS
OpenJDK Runtime Environment Corretto-11.0.8.10.1 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.8.10.1 (build 11.0.8+10-LTS, mixed mode)