Details
Description
It seems like files compiled with jrubyc on Mac OS X produce unusable output.
Here the steps to recreate. I also attached a compiled test file.
1. Create a file with content "print 'fun'"
2. run with standart ruby: output --> fun
3. compile the file with jrubyc
4. run with jruby -S file.class
output
$ jruby -S test.class
:1: test.class:1: Invalid char `\276' ('??') in expression (SyntaxError)
The jruby command runs (J)Ruby scripts.
Once you compile something using jrubyc, everything is in Java byte code. You can run it with the java command.
java test.class
If you manage to jar up the class, you will have a double-clickable jar
You can also invoke jars like so from the command line:
java -jar test.jar
If you're looking at compiling your projects, be sure to take a look at Rawr so you don't have to write a bunch of compile/jar scripts yourself. Rawr can also make .jar, .exe, and .app files.
http://rawr.rubyforge.org/