2016-03-10 18 views

回答

2

的例子是東西比隨Java 9JShell完全不同。從first section of the page you link to

JShell is a UNIX-like shell written in Java, and intended primarily for working with Java programs. It was written to overcome the problems in working with Java on the Psion 5mx:

的JShell附有Java 9並不意味着與操作系統交互,但是在運行的JVM拋出的Java代碼片段,這嘗試的事情。從您的其他鏈接:

REPL allows you to evaluate code snippets such as declarations, statements, expressions. You can test your code as you create it, and way before you are done with your whole project.

所以這只是一個不幸的名字衝突。

Robert Field(real JShell的設計者)在Devoxx上給出了很好的介紹。如果你可以騰出一個小時的話,看看它here