You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a ruby file from the console, it gives the below error:
C:\Users\XXXXX\Documents\projects\ruby_drafts\lib>jruby draft.rb
LoadError: no such file to load -- jars/commons-lang3-3.4
require at org/jruby/RubyKernel.java:939
require at C:/jruby-9.0.1.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<top> at draft.rb:2
As you see, the ruby script is in lib folder, the jar to load is in lib/jarsfolder.
Reproduced on a Windows 7 PC, JRuby version:
jruby 9.0.1.0 (2.2.2) 2015-09-02 583f336 Java HotSpot(TM) 64-Bit Server VM 24.79-b02 on 1.7.0_79-b15 +jit [Windows 7-amd64]
Any idea ? Thank you.
The text was updated successfully, but these errors were encountered:
I tried to import a jar as explained on the wiki page: https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby but failed:
When running a ruby file from the console, it gives the below error:
As you see, the ruby script is in
lib
folder, the jar to load is inlib/jars
folder.Reproduced on a Windows 7 PC, JRuby version:
Any idea ? Thank you.
The text was updated successfully, but these errors were encountered: