2015-12-22 22 views
6

我必須使用jshell java 9功能做一個項目。但是當我用java 9在intellij中啓動時,我有這個錯誤:錯誤:java.lang.InternalError:失敗的遠程啓動:com.sun.jdi.CommandLineLaunch

java.lang.InternalError: Failed remote launch: com.sun.jdi.CommandLineLaunch 

什麼可能導致這種情況?

+4

也許相關:https://bugs.openjdk.java.net/browse/JDK- 8131029 - 提議的解決方法:將主機名添加到127.0.0.1的/ etc/hosts – assylias

+0

這是行得通!謝謝 :) –

回答

1

更新於2017年10月26日

隨着jshell 9.0.1IntelliJ 2017.2.4這似乎已得到修復。

人們可以得到這個工作只需在的IntelliJ的終端輸入jshell如下::

enter image description here