From: Bill Kelly Date: 2006-03-03T17:10:10+09:00 Subject: Re: FAQ and JavaScript vs. Ruby (was Re: rubynuby - client side From: "Charles O Nutter" > > > Since JRuby uses a custom class loader, you will have to either sign > > the applet or edit the client's java.policy file and add the line: > > permission java.lang.RuntimePermission "getClassLoader"; > > FYI, this is more a limitation of the Bean Scripting Framework than of > JRuby itself. JRuby currently has no hard dependencies on > security-risky features like custom classloaders, and a version of > JRuby could be built--sans BSF--that would run just fine as an applet. Cool, nice to know! I'd really like to try this. My java's a bit rusty... I've downloaded the latest JDK and verified I can build JRuby from source. I grepped for BSF and: src/org/jruby/javasupport/bsf/JRubyEngine.java:import org.apache.bsf.BSFDeclaredBean; src/org/jruby/javasupport/bsf/JRubyEngine.java:import org.apache.bsf.BSFException; src/org/jruby/javasupport/bsf/JRubyEngine.java:import org.apache.bsf.BSFManager; src/org/jruby/javasupport/bsf/JRubyEngine.java:import org.apache.bsf.util.BSFEngineImpl; src/org/jruby/javasupport/bsf/JRubyEngine.java:import org.apache.bsf.util.BSFFunctions; // . . . It looked like it was mostly confined to that JRubyEngine.java file, although I'm a little lost looking at the source, as I don't know what the purpose of a BSF is yet. :) But before I delve into it, I was wondering, would you say it should be fairly easy to remove the BSF dependency? Or am I looking at a lot of hacking and slashing? Also, if JRuby is running as an applet, the ruby standard library files and my own program scripts will reside on the server, not the client's system. Is this something that will somehow be fairly transparent to the applet? Or will I be looking at hacking in the ability for JRuby to read .rb files from the server? Thanks for your thoughts, Regards, Bill