Installation packages
- JDK 11 https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html
- Oracle Java 11 Docker image https://github.com/oracle/docker-images/tree/main/OracleJava/11
See also
GitHub
Build JDK 11 image
dave@dave:/git/weblogic/docker-images/docker-oracle-java-11$ ./build.sh
Building Oracle JDK 11 on Oracle Linux 7 slim
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 169.9MB
Step 1/15 : FROM oraclelinux:7-slim as builder
7-slim: Pulling from library/oraclelinux
11a38aebcb7a: Pull complete
Digest: sha256:7aa9abbeb4e78d0717c46a63cb90a3285359b0753413bd2f2f5e39e9a7d5993c
Status: Downloaded newer image for oraclelinux:7-slim
---> 506c06ed74d4
Step 2/15 : LABEL maintainer="Aurelio Garcia-Ribeyro <aurelio.garciaribeyro@oracle.com>"
---> Running in a9eeecc8ae9a
Removing intermediate container a9eeecc8ae9a
---> c4d64e58c179
Step 3/15 : RUN yum install -y gzip tar
---> Running in 20445878bfb0
Loaded plugins: ovl
Package 2:tar-1.26-35.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gzip.x86_64 0:1.5-11.el7_9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gzip x86_64 1.5-11.el7_9 ol7_latest 129 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 129 k
Installed size: 245 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : gzip-1.5-11.el7_9.x86_64 1/1
Verifying : gzip-1.5-11.el7_9.x86_64 1/1
Installed:
gzip.x86_64 0:1.5-11.el7_9
Complete!
Removing intermediate container 20445878bfb0
---> 5794fc4428d6
Step 4/15 : ENV LANG en_US.UTF-8
---> Running in dd4f6ce453be
Removing intermediate container dd4f6ce453be
---> 79ac18c8737a
Step 5/15 : ENV JAVA_HOME=/usr/java/jdk-11
---> Running in 55a2120fc569
Removing intermediate container 55a2120fc569
---> 24e9614dd3ca
Step 6/15 : COPY *.tar.gz /tmp/
---> db81332ba08a
Step 7/15 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
---> Running in 5646dca1c66e
Removing intermediate container 5646dca1c66e
---> 91eba2ae2a71
Step 8/15 : RUN set -eux; ARCH="$(uname -m)" && if [ "$ARCH" = "x86_64" ]; then mv "$(ls /tmp/jdk-11*_linux-x64_bin.tar.gz)" /tmp/jdk.tar.gz ; JAVA_SHA256=b4eb49c123e2cf2ed7cb068a37b84eb75fcf1e76c3620d3378f5735e11a8508b ; else mv "$(ls /tmp/jdk-11*_linux-aarch64_bin.tar.gz)" /tmp/jdk.tar.gz ; JAVA_SHA256=d6b26336a467768d0ec1474dbfdc68df0aa0745e8e46871f0aa46a07851097df ; fi && echo "$JAVA_SHA256 */tmp/jdk.tar.gz" | sha256sum -c -; mkdir -p "$JAVA_HOME"; tar --extract --file /tmp/jdk.tar.gz --directory "$JAVA_HOME" --strip-components 1
---> Running in 8a8a5bef2431
++ uname -m
+ ARCH=x86_64
+ '[' x86_64 = x86_64 ']'
++ ls /tmp/jdk-11.0.20_linux-x64_bin.tar.gz
+ mv /tmp/jdk-11.0.20_linux-x64_bin.tar.gz /tmp/jdk.tar.gz
+ JAVA_SHA256=b4eb49c123e2cf2ed7cb068a37b84eb75fcf1e76c3620d3378f5735e11a8508b
+ echo 'b4eb49c123e2cf2ed7cb068a37b84eb75fcf1e76c3620d3378f5735e11a8508b */tmp/jdk.tar.gz'
+ sha256sum -c -
/tmp/jdk.tar.gz: OK
+ mkdir -p /usr/java/jdk-11
+ tar --extract --file /tmp/jdk.tar.gz --directory /usr/java/jdk-11 --strip-components 1
Removing intermediate container 8a8a5bef2431
---> dcacebd8006e
Step 9/15 : FROM oraclelinux:7-slim
---> 506c06ed74d4
Step 10/15 : ENV LANG en_US.UTF-8
---> Running in d89d29d6ba65
Removing intermediate container d89d29d6ba65
---> 4f4c16a907dc
Step 11/15 : ENV JAVA_HOME=/usr/java/jdk-11
---> Running in 4563545f4b8b
Removing intermediate container 4563545f4b8b
---> 7cdea07e15df
Step 12/15 : ENV PATH $JAVA_HOME/bin:$PATH
---> Running in 739e33df5e6f
Removing intermediate container 739e33df5e6f
---> 84bc9560aba7
Step 13/15 : COPY --from=builder $JAVA_HOME $JAVA_HOME
---> 53437439b590
Step 14/15 : RUN set -eux; yum -y update; yum install -y freetype fontconfig ; rm -rf /var/cache/yum; ln -sfT "$JAVA_HOME" /usr/java/default; ln -sfT "$JAVA_HOME" /usr/java/latest; for bin in "$JAVA_HOME/bin/"*; do base="$(basename "$bin")"; [ ! -e "/usr/bin/$base" ]; alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; done; java -Xshare:dump;
---> Running in 87543eaeb535
+ yum -y update
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package libblkid.x86_64 0:2.23.2-65.0.3.el7_9.1 will be updated
---> Package libblkid.x86_64 0:2.23.2-65.0.4.el7_9.1 will be an update
---> Package libmount.x86_64 0:2.23.2-65.0.3.el7_9.1 will be updated
---> Package libmount.x86_64 0:2.23.2-65.0.4.el7_9.1 will be an update
---> Package libuuid.x86_64 0:2.23.2-65.0.3.el7_9.1 will be updated
---> Package libuuid.x86_64 0:2.23.2-65.0.4.el7_9.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
libblkid x86_64 2.23.2-65.0.4.el7_9.1 ol7_latest 183 k
libmount x86_64 2.23.2-65.0.4.el7_9.1 ol7_latest 185 k
libuuid x86_64 2.23.2-65.0.4.el7_9.1 ol7_latest 84 k
Transaction Summary
================================================================================
Upgrade 3 Packages
Total download size: 452 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total 1.1 MB/s | 452 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : libuuid-2.23.2-65.0.4.el7_9.1.x86_64 1/6
Updating : libblkid-2.23.2-65.0.4.el7_9.1.x86_64 2/6
Updating : libmount-2.23.2-65.0.4.el7_9.1.x86_64 3/6
Cleanup : libmount-2.23.2-65.0.3.el7_9.1.x86_64 4/6
Cleanup : libblkid-2.23.2-65.0.3.el7_9.1.x86_64 5/6
Cleanup : libuuid-2.23.2-65.0.3.el7_9.1.x86_64 6/6
Verifying : libuuid-2.23.2-65.0.4.el7_9.1.x86_64 1/6
Verifying : libmount-2.23.2-65.0.4.el7_9.1.x86_64 2/6
Verifying : libblkid-2.23.2-65.0.4.el7_9.1.x86_64 3/6
Verifying : libuuid-2.23.2-65.0.3.el7_9.1.x86_64 4/6
Verifying : libblkid-2.23.2-65.0.3.el7_9.1.x86_64 5/6
Verifying : libmount-2.23.2-65.0.3.el7_9.1.x86_64 6/6
Updated:
libblkid.x86_64 0:2.23.2-65.0.4.el7_9.1
libmount.x86_64 0:2.23.2-65.0.4.el7_9.1
libuuid.x86_64 0:2.23.2-65.0.4.el7_9.1
Complete!
+ yum install -y freetype fontconfig
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
---> Package freetype.x86_64 0:2.8-14.el7_9.1 will be installed
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: freetype-2.8-14.el7_9.1.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: freetype-2.8-14.el7_9.1.x86_64
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package libpng.x86_64 2:1.5.13-8.el7 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
fontconfig x86_64 2.13.0-4.3.el7 ol7_latest 254 k
freetype x86_64 2.8-14.el7_9.1 ol7_latest 380 k
Installing for dependencies:
dejavu-fonts-common noarch 2.33-6.el7 ol7_latest 64 k
dejavu-sans-fonts noarch 2.33-6.el7 ol7_latest 1.4 M
fontpackages-filesystem noarch 1.44-8.el7 ol7_latest 9.4 k
libpng x86_64 2:1.5.13-8.el7 ol7_latest 212 k
Transaction Summary
================================================================================
Install 2 Packages (+4 Dependent packages)
Total download size: 2.3 M
Installed size: 7.3 M
Downloading packages:
--------------------------------------------------------------------------------
Total 5.5 MB/s | 2.3 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : fontpackages-filesystem-1.44-8.el7.noarch 1/6
Installing : dejavu-fonts-common-2.33-6.el7.noarch 2/6
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 3/6
Installing : 2:libpng-1.5.13-8.el7.x86_64 4/6
Installing : freetype-2.8-14.el7_9.1.x86_64 5/6
Installing : fontconfig-2.13.0-4.3.el7.x86_64 6/6
Verifying : fontconfig-2.13.0-4.3.el7.x86_64 1/6
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 2/6
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 3/6
Verifying : 2:libpng-1.5.13-8.el7.x86_64 4/6
Verifying : freetype-2.8-14.el7_9.1.x86_64 5/6
Verifying : fontpackages-filesystem-1.44-8.el7.noarch 6/6
Installed:
fontconfig.x86_64 0:2.13.0-4.3.el7 freetype.x86_64 0:2.8-14.el7_9.1
Dependency Installed:
dejavu-fonts-common.noarch 0:2.33-6.el7
dejavu-sans-fonts.noarch 0:2.33-6.el7
fontpackages-filesystem.noarch 0:1.44-8.el7
libpng.x86_64 2:1.5.13-8.el7
Complete!
+ rm -rf /var/cache/yum
+ ln -sfT /usr/java/jdk-11 /usr/java/default
+ ln -sfT /usr/java/jdk-11 /usr/java/latest
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jar
+ base=jar
+ '[' '!' -e /usr/bin/jar ']'
+ alternatives --install /usr/bin/jar jar /usr/java/jdk-11/bin/jar 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jarsigner
+ base=jarsigner
+ '[' '!' -e /usr/bin/jarsigner ']'
+ alternatives --install /usr/bin/jarsigner jarsigner /usr/java/jdk-11/bin/jarsigner 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/java
+ base=java
+ '[' '!' -e /usr/bin/java ']'
+ alternatives --install /usr/bin/java java /usr/java/jdk-11/bin/java 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/javac
+ base=javac
+ '[' '!' -e /usr/bin/javac ']'
+ alternatives --install /usr/bin/javac javac /usr/java/jdk-11/bin/javac 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/javadoc
+ base=javadoc
+ '[' '!' -e /usr/bin/javadoc ']'
+ alternatives --install /usr/bin/javadoc javadoc /usr/java/jdk-11/bin/javadoc 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/javap
+ base=javap
+ '[' '!' -e /usr/bin/javap ']'
+ alternatives --install /usr/bin/javap javap /usr/java/jdk-11/bin/javap 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jcmd
+ base=jcmd
+ '[' '!' -e /usr/bin/jcmd ']'
+ alternatives --install /usr/bin/jcmd jcmd /usr/java/jdk-11/bin/jcmd 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jconsole
+ base=jconsole
+ '[' '!' -e /usr/bin/jconsole ']'
+ alternatives --install /usr/bin/jconsole jconsole /usr/java/jdk-11/bin/jconsole 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jdb
+ base=jdb
+ '[' '!' -e /usr/bin/jdb ']'
+ alternatives --install /usr/bin/jdb jdb /usr/java/jdk-11/bin/jdb 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jdeprscan
+ base=jdeprscan
+ '[' '!' -e /usr/bin/jdeprscan ']'
+ alternatives --install /usr/bin/jdeprscan jdeprscan /usr/java/jdk-11/bin/jdeprscan 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jdeps
+ base=jdeps
+ '[' '!' -e /usr/bin/jdeps ']'
+ alternatives --install /usr/bin/jdeps jdeps /usr/java/jdk-11/bin/jdeps 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jfr
+ base=jfr
+ '[' '!' -e /usr/bin/jfr ']'
+ alternatives --install /usr/bin/jfr jfr /usr/java/jdk-11/bin/jfr 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jhsdb
+ base=jhsdb
+ '[' '!' -e /usr/bin/jhsdb ']'
+ alternatives --install /usr/bin/jhsdb jhsdb /usr/java/jdk-11/bin/jhsdb 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jimage
+ base=jimage
+ '[' '!' -e /usr/bin/jimage ']'
+ alternatives --install /usr/bin/jimage jimage /usr/java/jdk-11/bin/jimage 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jinfo
+ base=jinfo
+ '[' '!' -e /usr/bin/jinfo ']'
+ alternatives --install /usr/bin/jinfo jinfo /usr/java/jdk-11/bin/jinfo 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jjs
+ base=jjs
+ '[' '!' -e /usr/bin/jjs ']'
+ alternatives --install /usr/bin/jjs jjs /usr/java/jdk-11/bin/jjs 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jlink
+ base=jlink
+ '[' '!' -e /usr/bin/jlink ']'
+ alternatives --install /usr/bin/jlink jlink /usr/java/jdk-11/bin/jlink 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jmap
+ base=jmap
+ '[' '!' -e /usr/bin/jmap ']'
+ alternatives --install /usr/bin/jmap jmap /usr/java/jdk-11/bin/jmap 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jmod
+ base=jmod
+ '[' '!' -e /usr/bin/jmod ']'
+ alternatives --install /usr/bin/jmod jmod /usr/java/jdk-11/bin/jmod 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jps
+ base=jps
+ '[' '!' -e /usr/bin/jps ']'
+ alternatives --install /usr/bin/jps jps /usr/java/jdk-11/bin/jps 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jrunscript
+ base=jrunscript
+ '[' '!' -e /usr/bin/jrunscript ']'
+ alternatives --install /usr/bin/jrunscript jrunscript /usr/java/jdk-11/bin/jrunscript 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jshell
+ base=jshell
+ '[' '!' -e /usr/bin/jshell ']'
+ alternatives --install /usr/bin/jshell jshell /usr/java/jdk-11/bin/jshell 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jstack
+ base=jstack
+ '[' '!' -e /usr/bin/jstack ']'
+ alternatives --install /usr/bin/jstack jstack /usr/java/jdk-11/bin/jstack 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jstat
+ base=jstat
+ '[' '!' -e /usr/bin/jstat ']'
+ alternatives --install /usr/bin/jstat jstat /usr/java/jdk-11/bin/jstat 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/jstatd
+ base=jstatd
+ '[' '!' -e /usr/bin/jstatd ']'
+ alternatives --install /usr/bin/jstatd jstatd /usr/java/jdk-11/bin/jstatd 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/keytool
+ base=keytool
+ '[' '!' -e /usr/bin/keytool ']'
+ alternatives --install /usr/bin/keytool keytool /usr/java/jdk-11/bin/keytool 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/pack200
+ base=pack200
+ '[' '!' -e /usr/bin/pack200 ']'
+ alternatives --install /usr/bin/pack200 pack200 /usr/java/jdk-11/bin/pack200 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/rmic
+ base=rmic
+ '[' '!' -e /usr/bin/rmic ']'
+ alternatives --install /usr/bin/rmic rmic /usr/java/jdk-11/bin/rmic 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/rmid
+ base=rmid
+ '[' '!' -e /usr/bin/rmid ']'
+ alternatives --install /usr/bin/rmid rmid /usr/java/jdk-11/bin/rmid 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/rmiregistry
+ base=rmiregistry
+ '[' '!' -e /usr/bin/rmiregistry ']'
+ alternatives --install /usr/bin/rmiregistry rmiregistry /usr/java/jdk-11/bin/rmiregistry 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/serialver
+ base=serialver
+ '[' '!' -e /usr/bin/serialver ']'
+ alternatives --install /usr/bin/serialver serialver /usr/java/jdk-11/bin/serialver 20000
+ for bin in '"$JAVA_HOME/bin/"*'
++ basename /usr/java/jdk-11/bin/unpack200
+ base=unpack200
+ '[' '!' -e /usr/bin/unpack200 ']'
+ alternatives --install /usr/bin/unpack200 unpack200 /usr/java/jdk-11/bin/unpack200 20000
+ java -Xshare:dump
narrow_klass_base = 0x0000000800000000, narrow_klass_shift = 3
Allocated temporary class space: 1073741824 bytes at 0x00000008c0000000
Allocated shared space: 3221225472 bytes at 0x0000000800000000
Loading classes to share ...
Loading classes to share: done.
Rewriting and linking classes ...
Rewriting and linking classes: done
Number of classes 1216
instance classes = 1156
obj array classes = 52
type array classes = 8
Updating ConstMethods ... done.
Removing unshareable information ... done.
Scanning all metaspace objects ...
Allocating RW objects ...
Allocating RO objects ...
Relocating embedded pointers ...
Relocating external roots ...
Dumping symbol table ...
Dumping objects to closed archive heap region ...
Dumping objects to open archive heap region ...
Relocating SystemDictionary::_well_known_klasses[] ...
Removing java_mirror ... done.
mc space: 8144 [ 0.1% of total] out of 8192 bytes [ 99.4% used] at 0x0000000800000000
rw space: 3818304 [ 32.5% of total] out of 3821568 bytes [ 99.9% used] at 0x0000000800002000
ro space: 7099752 [ 60.4% of total] out of 7102464 bytes [100.0% used] at 0x00000008003a7000
md space: 2560 [ 0.0% of total] out of 4096 bytes [ 62.5% used] at 0x0000000800a6d000
st0 space: 409600 [ 3.5% of total] out of 409600 bytes [100.0% used] at 0x00000007bff00000
oa0 space: 212992 [ 1.8% of total] out of 212992 bytes [100.0% used] at 0x00000007bfe00000
bm space: 196616 [ 1.7% of total] out of 196616 bytes [100.0% used] at 0x0000000000000000
total : 11551352 [100.0% of total] out of 11755528 bytes [ 98.3% used]
Removing intermediate container 87543eaeb535
---> 18be8724b598
Step 15/15 : CMD ["jshell"]
---> Running in 7ea3469bb982
Removing intermediate container 7ea3469bb982
---> fea3c351284b
Successfully built fea3c351284b
Successfully tagged oracle/jdk:11-ol7
List images
dave@dave:/git/weblogic/docker-images/docker-oracle-java-11$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
oracle/jdk 11-ol7 fea3c351284b 6 minutes ago 451MB
<none> <none> dcacebd8006e 6 minutes ago 1.14GB
oraclelinux 7-slim 506c06ed74d4 3 weeks ago 138MB
Run Java 11 image
dave@dave:/git/weblogic/docker-images/docker-oracle-java-11$ docker run -it oracle/jdk:11-ol7
Dec 10, 2023 12:39:22 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
| Welcome to JShell -- Version 11.0.20
| For an introduction type: /help intro
jshell> /help
| Type a Java language expression, statement, or declaration.
| Or type one of the following commands:
| /list [<name or id>|-all|-start]
| list the source you have typed
| /edit <name or id>
| edit a source entry
| /drop <name or id>
| delete a source entry
| /save [-all|-history|-start] <file>
| Save snippet source to a file
| /open <file>
| open a file as source input
| /vars [<name or id>|-all|-start]
| list the declared variables and their values
| /methods [<name or id>|-all|-start]
| list the declared methods and their signatures
| /types [<name or id>|-all|-start]
| list the type declarations
| /imports
| list the imported items
| /exit [<integer-expression-snippet>]
| exit the jshell tool
| /env [-class-path <path>] [-module-path <path>] [-add-modules <modules>] ...
| view or change the evaluation context
| /reset [-class-path <path>] [-module-path <path>] [-add-modules <modules>]...
| reset the jshell tool
| /reload [-restore] [-quiet] [-class-path <path>] [-module-path <path>]...
| reset and replay relevant history -- current or previous (-restore)
| /history [-all]
| history of what you have typed
| /help [<command>|<subject>]
| get information about using the jshell tool
| /set editor|start|feedback|mode|prompt|truncation|format ...
| set configuration information
| /? [<command>|<subject>]
| get information about using the jshell tool
| /!
| rerun last snippet -- see /help rerun
| /<id>
| rerun snippets by ID or ID range -- see /help rerun
| /-<n>
| rerun n-th previous snippet -- see /help rerun
|
| For more information type '/help' followed by the name of a
| command or a subject.
| For example '/help /list' or '/help intro'.
|
| Subjects:
|
| intro
| an introduction to the jshell tool
| keys
| a description of readline-like input editing
| id
| a description of snippet IDs and how use them
| shortcuts
| a description of keystrokes for snippet and command completion,
| information access, and automatic code generation
| context
| a description of the evaluation context options for /env /reload and /reset
| rerun
| a description of ways to re-evaluate previously entered snippets
jshell>
No comments:
Post a Comment