From: Joe Date: 2008-01-09T12:53:48+09:00 Subject: Re: Ruby questions On Jan 8, 2008 10:41 PM, Jan Dvorak wrote: > On Wednesday 09 January 2008 03:58:17 Joe wrote: > > Honestly, the best way I've seen to distribute a ruby app to actual > > users that I've seen is JRuby. Compile your program to java bytecode > > and you can distribute it in a jar. > What about extensions ? (ruby-opengl in this case) Java OpenGL extensions are available. I don't mean to push JRuby so hard, but when looking for a good distribution mechanism a while back it's the best i could find. It'd also work on platforms I don't own. I don't have a mac, but I'd like software i write to be able to run on it. I don't expect my users to use the command line to start the program. I guess other people have different requirements. > > > sorry, my mistake. The name of it always makes me think windows only. > > It can run on all platforms, but it's not a cross platform solution. > > The exe generated is only for the platform it's running on. > > Technically speaking this is not cross-platform solution either, as the > bytecode runs only on the Java platform. For distribution you're just trading > dependency on ruby interpreter for dependency on java bytecode interpreter. > > Tools like rubyscript2exe will get you OS-dependent binary, but it is > self-sustained and will run without any other dependencies. I guess I should have said OS independent. I'd like for something in ruby to be similar to the jar, but it hasn't seem to emerged yet. > > Jan > >