Is this possible to run independent Java REPLs from single JVM?

35 Views Asked by At

Is this possible to have multiple JShell instances in a single JVM whilst keeping them independent? Like each instance having separate classpath/class definitions even if their names are the same? I want to create multiple REPLs but avoid creating a separate JVM for each one.

REPL user must be able to define types without interfering with other JShell instances.

Is it possible? Is it out of the box? What to do to achieve it?

0

There are 0 best solutions below