# Jruby error in installation

**URL:** <https://www.ruby-forum.com/t/jruby-error-in-installation/157873>\
**Category:** JRuby\
**Created:** [January 16, 2009, 6:22am UTC](https://www.ruby-forum.com/t/jruby-error-in-installation/157873 "2009-01-16T06:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enchanter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ce7236/32.png) [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Post date:** [January 16, 2009, 6:22am UTC](https://www.ruby-forum.com/t/jruby-error-in-installation/157873/1 "2009-01-16T06:22:03Z")

</div>

Hello!

I am on Mac OS 10.5 (Leopard). All I have done is this; I downloaded  
jruby-bin-1.1.6.tar, untarred it to JRuby-1.1.6, and then went into  
…/JRuby-1.1.6/bin/ and ran ./jruby -v  
Both with and without -v gives this error:  
Exception in thread “main” java.lang.NoClassDefFoundError:  
org/jruby/Main

and JIRB gives an error about no command jruby, but thats probbly  
because I haven’t added it to my $PATH yet. Why do I get the above error  
tho? Also, can Jruby/swing(?) do terminal based graphics (TUI) in the  
Ncurses style?

---

<div class="post-metadata">

**Author:** ![enchanter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ce7236/32.png) [@enchanter](https://www.ruby-forum.com/u/enchanter)\
**Post date:** [January 28, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/jruby-error-in-installation/157873/2 "2009-01-28T20:49:47Z")

</div>

Tim M. wrote:

> Hello!
> 
> I am on Mac OS 10.5 (Leopard). All I have done is this; I downloaded  
> jruby-bin-1.1.6.tar, untarred it to JRuby-1.1.6, and then went into  
> …/JRuby-1.1.6/bin/ and ran ./jruby -v  
> Both with and without -v gives this error:  
> Exception in thread “main” java.lang.NoClassDefFoundError:  
> org/jruby/Main
> 
> and JIRB gives an error about no command jruby, but thats probbly  
> because I haven’t added it to my $PATH yet. Why do I get the above error  
> tho? Also, can Jruby/swing(?) do terminal based graphics (TUI) in the  
> Ncurses style?

you are probably running as a user who don’t have rights to run the  
executible, so either run as root or go to the executible and chmod it  
so you have rights to it. also to run jirb i use “jruby -S jirb”. hope  
this was helpful
