Using Jupyter notebook for Java
While doing a similar search, I found an option that may meet your needs:
SciJava Jupyter Kernel https://github.com/scijava/scijava-jupyter-kernel
I have not actually run Java against this kernel yet, but it's documentation claims to support Java among a number of other scripting languages.
It is constructed to run ImageJ ("an open source Java image processing program"): https://imagej.net/Scripting#Supported_languages
Jupyter Kernels List (reference): https://github.com/jupyter/jupyter/wiki/Jupyter-kernels
You can use Zeppelin notebook instead. Apache Zeppelin is build on the JVM.
IJava available at https://github.com/SpencerPark/IJava requires JDK 9. The build process for my iMac (MacOS 10.13.5) worked like a charm and within 10 minutes, I could start programming interactively in Java within Jupyter.