(LoadError) no such file to load -- jruby/java

Viewed 2134

I am trying to create an ant task that will compile SASS files using JRuby. The problem I'm having is every time I call JRuby, I get the error:

build.xml:56: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- jruby/java

My project is using jruby-complete-1.7.9.jar. I do not have Ruby installed on my system because, from what I understand, everything I need should be in the JRuby jar. I also have not set any environmental variables (e.g. JRUBY_HOME). Here is the code that calls JRuby that is failing:

ScriptingContainer container = new ScriptingContainer();
container.runScriptlet("require 'rubygems'");

Can someone please tell me what I'm doing wrong?

2 Answers
Related