java repl_任何良好的Java REPL工具/实现?

java repl

Any good suggestions on a Java REPL implementation like ‘scala’ and ‘python’ or ‘php -a’?

关于Java REPL实现的任何好的建议,例如' scala '和'python'或'php -a'?

The java-repl tool https://github.com/albertlatacz/java-repl/ works nicely for most situations for me. It is released as a .jar. Hence, it is easy to download and run:

Java-repl工具https://github.com/albertlatacz/java-repl/对我来说在大多数情况下都能很好地工作。 它以.jar形式发布。 因此,很容易下载和运行:

$ wget --quiethttps://github.com/albertlatacz/java-repl/releases/download/428/javarepl-428.jar -O /tmp/javarepo-428.jar && java -jar /tmp/javarepo-428.jar

One usage example is as follows.

一个用法示例如下。

$ wget --quiet https://github.com/albertlatacz/java-repl/releases/download/428/javarepl-428.jar -O /tmp/javarepo-428.jar && java -jar /tmp/javarepo-428.jar
Welcome to JavaREPL version 428 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_25)
Type expression to evaluate, :help for more options or press tab to auto-complete.
Connected to local instance at http://localhost:33598
java> long ts =System.currentTimeMillis()/1000;
long ts = 1491474800
java> 
Answered by zma.
由zma回答。

翻译自: https://www.systutorials.com/any-good-java-repl-tool-implementation/

java repl

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值