# JRuby

**URL:** <https://rubytalk.org/t/jruby/3537>\
**Category:** ruby-talk\
**Created:** [11 December 2002 18:10 UTC](https://rubytalk.org/t/jruby/3537 "2002-12-11T18:10:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gbanschbach](https://avatars.discourse-cdn.com/v4/letter/g/f08c70/32.png) [@Gbanschbach](https://rubytalk.org/u/Gbanschbach)\
**Post date:** [11 December 2002 18:10 UTC](https://rubytalk.org/t/jruby/3537/1 "2002-12-11T18:10:11Z")

</div>

Dear Shannon,

I too am interested in JRuby, because I suspect that you could get a  
little better results with Swing GUI’s ( better control over “focus” and  
certain defaults - maybe (?) ). Plus, it would be very nice to be  
able to take advantage of some of the prebuilt libraries… maybe even  
database interfaces. I haven’t seen much documentation on this…I  
don’t even recall seeing a “tutorial” to explain how you would run a  
program you wrote [ie: java -x -y … hello.rb] … of course  
it has been a while… If you succeed with JRuby, please send me  
whatever you are willing to share.

Thanks,  
Greg

```
                  "Shannon Fang"                                                                       
                  <xrfang@hotmail.c To: <ruby-talk@ruby-lang.org>                         
                  > cc:                                                         
                  12/11/02 12:05 PM                                                                    
                  Please respond to                                                                    
                  ruby-talk                                                                            

```

Hi,

I am learning to use JRuby. Currently just started reading the documents.  
From a glimpse, I got an impression that JRuby enables you to use java  
classes in your ruby program. However, I am more interested in how to use  
ruby script in java applications, because it is easier to adopt ruby in  
Java  
environment (for commercial purpose) rather than vice versa.

Although the document mentioned that JRuby enables you to embed a ruby  
interpreter into your java application, I have not seen any document or  
samples on this. Could any one give me a hint? Preferrably several line of  
code to get a look and fee.

Thanks a lot!

Shannon

> **···**
>
> Subject: JRuby
> 
> * * *
> 
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE\*  
> [http://join.msn.com/?page=features/junkmail](http://join.msn.com/?page=features/junkmail)

---

<div class="post-metadata">

**Author:** ![Lei\_Wu](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Lei\_Wu](https://rubytalk.org/u/Lei_Wu)\
**Post date:** [13 December 2002 03:08 UTC](https://rubytalk.org/t/jruby/3537/2 "2002-12-13T03:08:38Z")

</div>

I would love to see the Ruby equivalent of Jython, too. For me, Jython  
is only reason I use Python.

Lei
