문제

I need a Java REPL/shell to quickly test some class files. Since they are mostly throwaway code, I don't want to have to bother writing full-blown unit tests. And writing a Main class is also too much extra work for some quick testing.

도움이 되었습니까?

해결책

Since no one else answered, I'll answer myself. I used Gyro Gearless's idea from the comments above. I installed Jython and it worked very well as a REPL to test out my Java classes.

다른 팁

Just stumbled here.

As mentioned in Mathias Begert's comment, there is an on-line Java REPL at http://www.javarepl.com/console.html and the sources are available from GitHub https://github.com/albertlatacz/java-repl

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top