Can someone tell me how to run the new JRuby irb console.
I tried:
java -cp jruby.jar org.jruby.demo.IRBConsole
Exception in thread “main” java.lang.NoClassDefFoundError:
jline/Completor
at org.jruby.ext.Readline$Service.load(Readline.java:57)
at …
at org.jruby.demo.IRBConsole.main(IRBConsole.java:64)
I am running java version “1.6.0”
Java™ SE Runtime Environment (build 1.6.0-b105)
and using JRuby 0.9.2 on Windows XP Pro.
Ordinary jruby and jirb work fine.
Apologies for replying to my own post.
I got it to run by copying jirb.bat, calling it jirbconsole.bat and
changing the execute line after the following comment:
rem ----- Execute The Requested Command
to:
%_STARTJAVA% -ea -cp “%CLASSPATH%” -Djruby.base="%JRUBY_BASE%"
-Djruby.home="%JRUBY_HOME%" -Djruby.lib="%JRUBY_HOME%\lib"
org.jruby.demo.IRBConsole %*
Then “jirbconsole” works for me (in most circumstances).
Robert Sheehan wrote:
Apologies for replying to my own post.
I got it to run by copying jirb.bat, calling it jirbconsole.bat and
changing the execute line after the following comment:
Actually there’s another way if you can build from source:
ant jar-console
This will create a jruby-console.jar in lib. All you need to do to
execute it then is:
java -jar jruby-console.jar
I will upload a copy of this jar to the JRuby.org dist location and post
instructions and a new item on the wiki about it.
dist: http://dist.codehaus.org/jruby/
wiki: http://www.headius.com/jrubywiki/
Robert Sheehan wrote:
Apologies for replying to my own post.
I got it to run by copying jirb.bat, calling it jirbconsole.bat and
changing the execute line after the following comment:
I added a page with links and info:
http://jruby.codehaus.org/Running+the+JRuby+Console+(graphical+IRB)
And I’ve uploaded a complete working console jar and a tarballed OS X
app as well:
http://dist.codehaus.org/jruby/jruby-console-0.9.2.jar
http://dist.codehaus.org/jruby/SuperConsole-0.1.tar.gz
Screenshot, for those who haven’t seen it (this doesn’t show the pop-up
list for tab completion, which is super cool):
http://dist.codehaus.org/jruby/JRubyConsole.png