James Britt
5/22/2009 6:46:00 AM
Charles Calvert wrote:
> On Tue, 19 May 2009 14:43:10 -0500, Alex <imphasing@gmail.com> wrote
> in <40a4cac50905191242h13c10f7as48c07db0e6609605@mail.gmail.com>:
>
>> As far as I know, there's currently no way to generate an exe out of a ruby
>> 1.9 script, short of packing the ruby script into the exe and calling the
>> external ruby interpreter. Since the ruby interpreter runs on windows just
>> fine though, why are you in need of an exe?
>
> In the Windows world, it is not normal to expect end users to install
> an interpreter in order to run software. Because Windows software is
> almost exclusively distributed in executable binary form, that's what
> users expect.
>
Except with Java. If the use does not have the proper version of the
JVM, they will get prompted (or can be, I don't know how automatic this
is) to download a newer version.
I've no surveys on this, only my own experience, but I don't think
Windows users are too spooked about having to get a more current JVM.
> Depending on one's target market for an application, asking them to
> alter this expectation may well result in people refusing to use the
> software. Between a general lack of computer literacy and the fear of
> malware, it's a hard barrier to break.
>
>> In the future it may be possible to compile the ruby bytecode into an exe
>> and bundle an interpreter with it, but I'm pretty sure nothing like that
>> exists yet.
>
JotBot, my cross-platform desktop app for time tracking, is written in
JRuby, and expects Java 1.6, and a user will get prompted to download
that if it is not available when installing JotBot.
I've not gotten any complaints, though that's not to say some just gave
up and never bothered to tell me.
This may be all academic to the OP as JRuby does not fully implement
Ruby 1.9 yet.
But distributing JRuby apps as Windows exe files is certainly doable.
--
James Britt
www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development