# How to run the new jirb console

**URL:** <https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211>\
**Category:** Ruby\
**Created:** [December 22, 2006, 9:00am UTC](https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211 "2006-12-22T09:00:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Sheehan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@Robert\_Sheehan](https://www.ruby-forum.com/u/Robert_Sheehan)\
**Post date:** [December 22, 2006, 9:00am UTC](https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211/1 "2006-12-22T09:00:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Robert\_Sheehan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@Robert\_Sheehan](https://www.ruby-forum.com/u/Robert_Sheehan)\
**Post date:** [December 22, 2006, 9:30am UTC](https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211/2 "2006-12-22T09:30:58Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![Robert\_Sheehan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@Robert\_Sheehan](https://www.ruby-forum.com/u/Robert_Sheehan)\
**Post date:** [December 22, 2006, 3:15pm UTC](https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211/3 "2006-12-22T15:15:35Z")

</div>

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](http://JRuby.org) dist location and post  
instructions and a new item on the wiki about it.

dist: [http://dist.codehaus.org/jruby/](http://dist.codehaus.org/jruby/)  
wiki: [http://www.headius.com/jrubywiki/](http://www.headius.com/jrubywiki/)

---

<div class="post-metadata">

**Author:** ![Robert\_Sheehan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@Robert\_Sheehan](https://www.ruby-forum.com/u/Robert_Sheehan)\
**Post date:** [December 22, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/how-to-run-the-new-jirb-console/80211/4 "2006-12-22T18:56:08Z")

</div>

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)](http://jruby.codehaus.org/Running+the+JRuby+Console+%28graphical+IRB%29)

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/jruby-console-0.9.2.jar)  
[http://dist.codehaus.org/jruby/SuperConsole-0.1.tar.gz](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](http://dist.codehaus.org/jruby/JRubyConsole.png)
