How to import a custom class in intellij JShell console
I am using the new intellij Jshell console (introduced here https://blog.jetbrains.com/idea/2017/09/java-9-and-intellij-idea/ ) I created a simple class file Test2.java public class Test2 { public static String test(){ return "Hello"; } } The JShell console is able to find the method in the hints when i try to run this on intellij jshell console (Tools>Jshell Console) Test2.test(); I get the following error "C:\Program Files\Java\jdk-9.0.1\bin\java" --add-modules java.xml.bind -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.1\lib\jshell-frontend.jar;C:\Program