It is not possible to generate bytecode with normal Ruby i.e C-Ruby. But I think its possible in Jruby
This very interesting. So, if I understood correctly, this is the same ruby programming language but they removed the standard interpreter and changed it to an interpreter that works using Java bytecode instead of ruby bytecode? So the compiled output is JVM-executable??? Which in turn means I can create Java programs using Ruby?!