JShell

How to run Java JShell with local maven dependencies

March 22, 2024
Java
JShell, Maven

Introduction # There are cases when we want to quickly debug some part of java code, play around with different versions of an isolated snippet or simply to sharpen our knowledge regarding some new libraries and concepts. Since Java 9 there is a REPL (Read–Eval–Print Loop) for an interactive evaluation within Java. No need anymore for the “long” feedback loop: code -> compile -> run -> code! This, of course, does not replace using tests for a quick/correct feedback loop. ...