OpenSSS load bug still?

hi newbie to this group, first post. I’m evaluating jruby for our

I encounter an error in trying to load net/smtp i.e.

require “net/smtp”

the above is literally all that I have in the file.

it complains about a openssl error , here’s the stack:

/Library/Frameworks/JRuby.framework/Versions/1.7.0/bin/jruby --1.9 -e
OpenSSL::X509::StoreError: setting default path failed: the
trustAnchors parameter must be non-empty
set_default_paths at org/jruby/ext/openssl/
SSLContext at
SSL at
OpenSSL at
(root) at
require at org/jruby/
(root) at
require at
require at org/jruby/
(root) at
(root) at
require at org/jruby/
require at
(root) at
load at org/jruby/
(root) at -e:1

Process finished with exit code 1

the gem jruby-openssl was installed succesfully.

I find old openssl issues on the forums but can’t find anything that
addresses this?

Any help is appreciated.


Just encountered something interesting and that’s the fact that on My
Windows 7 64 bit box I don’t encounter this issue at all. So there’s
something taking place on my Mac OS X box that is causing this. I had
downloaded the Jruby 64 + jre dmg package and setup that sdk under my
Idea project. I had also used rvm to install jruby-head but that’s not
the sdk configured for the project.

In the case of windows I had downloaded the exe+jre installer, it works
without a hitch.


This issue usually indicates a non-official or incomplete distribution
of OpenJDK/OracleJDK. Perhaps you can install the same JDK you’re
using on the 64-bit system?

  • Charlie

the installs on both the Win box where it works and the Mac Os x box
were via the installers provided by

here’s what I get when I run jruby --version :

jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on OpenJDK 64-Bit Server VM
1.7.0-internal-b00 [darwin-x86_64]

I’m also having issues debugging rspec tests and just plain debugging
but I figure I ask Intellij about those first.

I don’t have any issues with this using RMI so perhaps a Java setup
thing I’m missing ?



If you are facing this problem then download and export to your bash_profile


This works for me.