Jshell error: java.lang.NullPointerException: charsetName
问题 I'm trying to use JShell provided by JDK11 to run some simple command. But when I type: jshell>System.out.println("Hello World!"); It gives me the error: Exception in thread "main" java.lang.NullPointerException: charsetName at java.base/java.lang.String.<init>(String.java:464) at java.base/java.lang.String.<init>(String.java:537) at jdk.internal.le/jdk.internal.jline.extra.AnsiInterpretingOutputStream.write(AnsiInterpretingOutputStream.java:92) at java.base/java.io.OutputStream.write