Hi,

I have written the below code in Java using JRuby API. (http://
kenai.com/projects/jruby/pages/RedBridge)

..............
private final static String jrubyhome = "C:/Program Files/
jruby-1.4.0";
private final String filename = jrubyhome+"/lib/ruby/gems/1.8/gems/
ruote-2.1.6/examples/ruote_quickstart.rb";

public static void main(String[] args)
{
        ScriptingContainer container = new ScriptingContainer();
        List<String> loadPaths = new ArrayList();
        loadPaths.add(jrubyhome);
        loadPaths.add(jrubyhome + "/lib/ruby/site_ruby/1.8");
        loadPaths.add(jrubyhome + "/lib/ruby/1.9");
        loadPaths.add(jrubyhome + "/lib/ruby/gems/1.8/gems/ruote-2.1.6/lib");
        loadPaths.add(jrubyhome + "/lib/ruby/gems/1.8/gems/rufus-json-0.2.0/
lib");
        loadPaths.add(jrubyhome + "/lib/ruby/gems/1.8/gems/rufus-json-0.2.0/
lib/rufus");
        loadPaths.add(jrubyhome + "/lib/ruby/gems/1.8/gems/rufus-
cloche-0.1.13/lib");
        loadPaths.add(jrubyhome + "/lib/ruby/gems/1.8/gems/rufus-
scheduler-2.0.3/lib");
container.getProvider().setLoadPaths(loadPaths);
        container.runScriptlet(PathType.ABSOLUTE, filename);
}
.............

But the script line "storage = Ruote::FsStorage.new('ruote_work') "
throws the runtime error."no JSON backend found".

Am i missing any steps? Your help is greatly appreciated.

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to