setting classpath for jruby script in intellij idea
Hi,
I have a java app, with dependencies managed by Maven (which is pretty common nowadays, they are listed in module dependencies as Maven dependencies).
Natually, I select the jruby script and press run, expecting that my java's module dependencies will be included. But, according to console output they are not.
/usr/local/Cellar/jruby/1.7.3/libexec/bin/jruby --1.9 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/ibalashov/Documents/work/test/src/main/ruby/connect.rb
NameError: missing class or uppercase package name (`org.apache.hadoop.hbase.util.Bytes')
get_proxy_or_package_under_package at org/jruby/javasupport/JavaUtilities.java:54
method_missing at file:/usr/local/Cellar/jruby/1.7.3/libexec/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
(root) at /Users/xman...//////src/main/ruby/connect.rb:3
load at org/jruby/RubyKernel.java:1046
(root) at -e:1
I've also tried to add JRuby facet to the module configuration, but that didn't help either.
Any adivice on how to include classpath dependencies?
Thanks,
Please sign in to leave a comment.