"rawr:bundle:web" ?

11 views
Skip to first unread message

Dylan

unread,
Oct 1, 2011, 4:07:19 PM10/1/11
to rawr-lib
I was searching for information, earlier, as to how to host a
Monkeybars project such that it can be used online (originally trying
to find out how to modify an executable Jar so that it works as an
applet, I moved on to other queries).

A number of sources mention "rawr:bundle:web" to bundle as a web start
application. That sounds like it would solve my problem entirely!

Oddly I can't find this option when I'm using "rake rawr:". Many of
the sources appear to be from 2008 (though several are from 2009 and
even 2010). Was this feature removed? If so, is there any reason why
it was removed?

Thank you for your time and patience,
- Dylan

James Britt

unread,
Oct 3, 2011, 10:47:41 AM10/3/11
to rawr...@googlegroups.com
Dylan wrote:
> I was searching for information, earlier, as to how to host a
> Monkeybars project such that it can be used online (originally trying
> to find out how to modify an executable Jar so that it works as an
> applet, I moved on to other queries).
>
> A number of sources mention "rawr:bundle:web" to bundle as a web start
> application. That sounds like it would solve my problem entirely!

Maybe, but I don't think this was ever properly implemented.

There's some code inplace for genberating a jnlp file but I belive there
were problems packing the code.

>
> Oddly I can't find this option when I'm using "rake rawr:". Many of
> the sources appear to be from 2008 (though several are from 2009 and
> even 2010). Was this feature removed? If so, is there any reason why
> it was removed?

It didn't work. :)

James

Dylan

unread,
Oct 6, 2011, 11:46:57 PM10/6/11
to rawr-lib
That's unfortunate. Before I just accept it and have the program as a
standard download-and-run-type thing I guess I'll try a couple
changes.

I set it up on the webserver with a JNLP file. I get
"NoClassDefFoundError: org/jruby/ast/executable/AbstractScript.
I suspect it's because of the lib folder with monkeybars and jruby-
complete. It needs to be included in the .jar to be recognized, but
the program asks it to be beside the jar. My first instinct was the
jar it with the jar, but apparently (per google) JNLP will not allow
execution of jars inside jars.

Is there any code I can change to have the program look for the
library inside the jar, rather than beside it? Or is it something
totally different that's making this error (in which case solving it
would probably just bring me to more problems)

It's not a big deal, the program wasn't originally intended to be
hosted online (otherwise I probably would have used Rails), it just
seemed like a fun idea to try out. Not being able to host the apps on
the web is certainly not any real detriment, it isn't really designed
to be that way ( and regardless, I can't see myself giving up
monkeybars in the near future; it's great at what it does!)

Thanks for the amazing work on the project.
~Dylan

On Oct 3, 10:47 am, James Britt <james.br...@gmail.com> wrote:
>> D: "..."
> Maybe, but I don't think this was ever properly implemented.
>
> There's some code inplace for genberating a jnlp file but I belive there
> were problems packing the code.
>
>> D: "..."

James Britt

unread,
Oct 7, 2011, 12:20:56 AM10/7/11
to rawr...@googlegroups.com
Dylan wrote:
> That's unfortunate. Before I just accept it and have the program as a
> standard download-and-run-type thing I guess I'll try a couple
> changes.
>
> I set it up on the webserver with a JNLP file. I get
> "NoClassDefFoundError: org/jruby/ast/executable/AbstractScript.
> I suspect it's because of the lib folder with monkeybars and jruby-
> complete. It needs to be included in the .jar to be recognized, but
> the program asks it to be beside the jar. My first instinct was the
> jar it with the jar, but apparently (per google) JNLP will not allow
> execution of jars inside jars.
>
> Is there any code I can change to have the program look for the
> library inside the jar, rather than beside it? Or is it something
> totally different that's making this error (in which case solving it
> would probably just bring me to more problems)

You would have to look at the JNLP specs, I think, to see if the files
need packaging in a specific way. I last looked at this maybe two years
ago, and it never reliably worked for me. I didn't have a compelling
need for it so I didn't continue.

If you want to take a stab look at the rawr code that invokes the jar
command to see if there's a better way to assemble the final package.

This may also help:

http://kenai.com/projects/jruby/pages/JRubyOnWebStart


Plus the rawr source has some specs for testing jnlp if there's ever
proper code to create the package.


James

Reply all
Reply to author
Forward
0 new messages