# How do I release ruby program without the source?

**URL:** <https://www.ruby-forum.com/t/how-do-i-release-ruby-program-without-the-source/136130>\
**Category:** Ruby\
**Created:** [April 29, 2008, 9:06am UTC](https://www.ruby-forum.com/t/how-do-i-release-ruby-program-without-the-source/136130 "2008-04-29T09:06:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinwoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Post date:** [April 29, 2008, 9:06am UTC](https://www.ruby-forum.com/t/how-do-i-release-ruby-program-without-the-source/136130/1 "2008-04-29T09:06:34Z")

</div>

Can I use ruby 1.9 and compile it to byte code and release the byte  
code?

Regards,  
Shin Guey

---

<div class="post-metadata">

**Author:** ![shinwoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@shinwoo](https://www.ruby-forum.com/u/shinwoo)\
**Post date:** [April 29, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/how-do-i-release-ruby-program-without-the-source/136130/2 "2008-04-29T17:40:49Z")

</div>

On Tue, 29 Apr 2008 02:06:35 -0500, Shin guey Wong wrote:

> Can I use ruby 1.9 and compile it to byte code and release the byte  
> code?
> 
> Regards,  
> Shin Guey

You can do it in JRuby, using jrubyc. This creates a single class file  
containing the whole script. The JRuby classes cannot be used in Java  
code, though I hear a compiler that can do this is in the long term plan  
for JRuby.

–Ken
