Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting LoadError: no such file to load -- racob when executing eval in JAVA #17

Open
srutarshid opened this issue Aug 16, 2017 · 1 comment

Comments

@srutarshid
Copy link

I have added the jruby.jar, jruby-complete.jar, win32ole.jar and the racob.jar to my project's CLASSPATH in eclipse. I am getting the error messages:
LoadError: no such file to load -- racob
require at org/jruby/RubyKernel.java:961
require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54

at uri:classloader:/jruby-win32ole.rb:8 require at org/jruby/RubyKernel.java:961 (root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1 at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54

I have tried setting the GEM_HOME, GEM_PATH and GEM_DIR environment variables to the following path: C:\jruby-9.1.12.0\lib\ruby\gems.

How do I resolve this issue?

@enebo
Copy link
Owner

enebo commented Aug 16, 2017

I believe you need to add -djava.library.path=path/to/racob.dll (or .so/whatever) so that the JNI portion of racob will load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants