Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Update: This may not work, because the wxruby gem may use binary "extensions", and that is platform dependent and so may not be easy to get working in Jruby... try and tell</p> <p>You can try the following workaround with Jruby + warbler gem - it can package your ruby program into a portable JAR (java) file, which you can then copy and run on other computers that have Java installed (only java, ruby will already go packaged in the .jar file :) ) </p> <p>I've made some notes for myself some months ago - they should be enough for the steps involved:</p> <h3>1- install jruby</h3> <ul> <li>see <a href="http://jruby.org/" rel="nofollow noreferrer">http://jruby.org/</a> </li> <li>should be as simple as dowload zip file, unzip it, set an environment variable, and execute it (everything is explained it their website, pretty easy)</li> </ul> <h3>2- install warbler gem</h3> <pre><code>jruby -S gem install warbler </code></pre> <h3>3- place your .rb files for compile/package with warbler</h3> <p>(see this StackOverflow thread: <a href="https://stackoverflow.com/questions/2269164/create-deployable-jruby-jar/5758996#5758996">Create deployable JRuby JAR file?</a> )</p> <pre><code>mkdir myapp mkdir myapp/bin vim myapp/bin/myapp.rb #create .rb file which will be 'booted' (executed) by jar file mkdir myapp/lib vim myapp/lib/my_nice_lib.rb #leave all .rb files to be 'require'd here cd myapp </code></pre> <h3>4- use warbler to compile/package into myapp.jar</h3> <pre><code>warble jar </code></pre> <h3>5- run myapp.jar in any computer with java, with:</h3> <pre><code>java -jar myapp.jar </code></pre> <p>Hope it helps - report back how it went</p> <p>Cheers</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload