This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
0 Replies Last post: Mar 15, 2013 9:32 PM by Ivan Balashov  
Ivan Balashov Newbie 6 posts since
Aug 31, 2006
Currently Being Moderated

Mar 15, 2013 9:32 PM

setting classpath for jruby script in intellij idea



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/

                      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/

                              (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?


More Like This

  • Retrieving data ...