# Jruby and ruby on rails corelation

**URL:** <https://www.ruby-forum.com/t/jruby-and-ruby-on-rails-corelation/175506>\
**Category:** Rails\
**Created:** [September 14, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/jruby-and-ruby-on-rails-corelation/175506 "2009-09-14T23:15:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lali](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5e9695/32.png) [@lali](https://www.ruby-forum.com/u/lali)\
**Post date:** [September 14, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/jruby-and-ruby-on-rails-corelation/175506/1 "2009-09-14T23:15:34Z")

</div>

j2ee is quite heavy and bogus not easily usable language.  
however j2ee can work with very heavy sun boxes, due to this reason  
ruby has a swing calss jruby.  
how can we use some of the features f jruby with ruby on rails  
environment.  
a system level discussion is required for this purpose.  
ruby on rails may be the way out of the java gimmicks and mischieves.

---

<div class="post-metadata">

**Author:** ![lali](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5e9695/32.png) [@lali](https://www.ruby-forum.com/u/lali)\
**Post date:** [September 14, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/jruby-and-ruby-on-rails-corelation/175506/2 "2009-09-14T23:23:11Z")

</div>

On Sep 14, 9:48 pm, lali [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> j2ee is quite heavy and bogus not easily usable language.  
> however j2ee can work with very heavy sun boxes, due to this reason  
> ruby has a swing calss jruby.  
> how can we use some of the features f jruby with ruby on rails  
> environment.  
> a system level discussion is required for this purpose.  
> ruby on rails may be the way out of the java gimmicks and mischieves.

Not quite sure what you’re on about but if you are asking whether  
jruby can run rails apps then the answer is yes.

Fred

---

<div class="post-metadata">

**Author:** ![lali](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5e9695/32.png) [@lali](https://www.ruby-forum.com/u/lali)\
**Post date:** [September 16, 2009, 4:37am UTC](https://www.ruby-forum.com/t/jruby-and-ruby-on-rails-corelation/175506/3 "2009-09-16T04:37:21Z")

</div>

lali wrote:

> j2ee is quite heavy and bogus not easily usable language.  
> however j2ee can work with very heavy sun boxes, due to this reason  
> ruby has a swing calss jruby.  
> how can we use some of the features f jruby with ruby on rails  
> environment.  
> a system level discussion is required for this purpose.  
> ruby on rails may be the way out of the java gimmicks and mischieves.

I assume English for you is a second language. I’ll try to be as clear  
as I can…

Java (the langage) runs inside a Virtual Machine (VM) and is called the  
Java Virtual Machine (JVM). The JVM reads instructions from compiled  
Java code called Bytecode.

Ruby also run inside of a Virtual Machine, but instead of running  
compiled byte code (as with Java) the Ruby VM interprets the Ruby source  
code and runs that.

The physical hardware (Sun boxes in your example) execute machine code.  
The machine code can be compiled directly for the hardware, as is the  
case with most C based languages. Or the machine code can come from a VM  
(as with Java and Ruby).

With JRuby the JVM is capable of running Ruby source code just like the  
C based Ruby VM. The physical hardware can run either.

One advantage of JRuby is that running Ruby inside the JVM provides you  
access to other Java based libraries more directly than running Ruby  
outside of the JVM. However, the same could be said for running the  
native Ruby VM. It might be easier to use Ruby libraries/gems that  
contains native C libraries.

The point I’m making is that the hardware can work with the native Ruby  
VM just as easily as the Java Virtual Machine can. Your decision on  
which to use must be determined for other reasons beside what physical  
hardware will run the Ruby code.

I hope this helps clear thing up for you and does not confuse you more.

Happy coding, and good luck…

---

<div class="post-metadata">

**Author:** ![lali](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/5e9695/32.png) [@lali](https://www.ruby-forum.com/u/lali)\
**Post date:** [September 17, 2009, 9:23am UTC](https://www.ruby-forum.com/t/jruby-and-ruby-on-rails-corelation/175506/4 "2009-09-17T09:23:37Z")

</div>

Hi Robert W.

```
 Super explantion. I liked it.keep it up

```

Sijo
