Search code examples
javarubyirb

How can I obtain an interactive shell (like Ruby's irb) for Java?


I spent the last year doing Ruby development, and during that time I discovered irb, which makes running little "code experiments" easy and fun. I've recently switched teams and am now doing Java development, and I've found that I really miss my irb window. I would like to do the same thing for Java, but I don't know how.

I'm using Eclipse (groan), but Eclipse's bells and whistles are not the same thing.


Solution

  • Would "Use an Eclipse Java Scrapbook page" be better ;-)

    I haven't actually used irb, but if you just want to run code snippets inside of eclipse, then this is a simple way of doing it.