14

I have Java 11 JDK and IntelliJ IDEA 2018.2.4 (64-bit). When I was using Java 10.0.2, the JShell console in IntelliJ IDEA worked fine. Now that I've upgraded to Java 11, the JShell console has stopped working. Nothing at all happens when I click on the Run button or when I hit Ctrl+Enter (see screenshot).

My projects compile and run just fine using Java 11 - it's only the JShell console that doesn't work. (Also, JShell works fine from the Command Prompt, it's only inside IDEA that it doesn't work.) I can reproduce this issue on two machines, one at home running IDEA Community Edition 2018.2.4 and the other at work running Ultimate 2018.2.3.

Is there some configuration I need to do in order to fix this?

screenshot

Naman
  • 23,555
  • 22
  • 173
  • 290
Klitos Kyriacou
  • 8,630
  • 2
  • 32
  • 59
  • looks like `--add-modules java.xml.bind` could be the issue there. Since the module no more exists in the JDK. – Naman Oct 06 '18 at 16:15

1 Answers1

10

This seems like a bug registered with JetBrains - IDEA-197466 (reported on version 2018.3)

The reason mostly as it looks like is because of the --add-modules java.xml.bind there.

Since the module java.xml.bind no more exists in the JDK/11.

Edit: As verified by OP, this has been resolved in 2018.3 version of IntelliJ.

Naman
  • 23,555
  • 22
  • 173
  • 290