In the roadmap of Java 9, a REPL (read-eval-print-loop) will be part of the JDK.
It is proposed as a JDK Enhancement Proposal JEP 222.
To run the java repl from this repository:
docker run -it ensignprojects/javarepl
You close the repl by pressing: Ctrl-d
More info on jshell:
- http ://blog.takipi.com/java-9-early-access-a-hands-on-session-with-jshell-the-java-repl/ (the space between before the colon is on purpose, otherwise the link wouldn't be shown)
This repository was created before java 9 repository existed, for backward compatibility is it still available.
This repository is unnecessary, since java repository contains java 9.
You can now run:
docker run -it java:9 jshell