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
On Ubuntu 15.10 (Wiley) and any JRuby 9000 version. Any invocation of jruby or jirb returns the following error (elided to keep it brief)
Unhandled Java exception: java.lang.NoClassDefFoundError: Could not initialize class jnr.enxio.channels.Native$SingletonHolder
java.lang.NoClassDefFoundError: Could not initialize class jnr.enxio.channels.Native$SingletonHolder
libc at jnr/enxio/channels/Native.java:69
write at jnr/enxio/channels/Native.java:112
write at jnr/enxio/channels/NativeDeviceChannel.java:86
write at org/jruby/util/io/PosixShim.java:102
...
Per the documentation I checked that update-alternatives for both java and javac were correct:
never had problems on ubuntu before. it is a bug. how did you install those jdk1.8.x ? via apt ? which repo ? does it fail on any jdk version ? like the openjdk ones ?
I believe I saw @dhinojosa managed to fix this locally with -J-Djava.library.path=/usr/lib64, correct? The search logic in jnr-ffi or jffi should be locating the right path...I guess we're still missing something :-(
@headius I am not as familiar of this jnr-ffi, but found it on github. Is there a functional test that I can run on my machine to help determine what logic is missing (cc: @mkristian)
I'm not sure if there's anything to fix here until we get a clear picture of what the environment looked like and how you were able to fix it. I suspect this is the same as other lib64 issues we've been dealing with for a while, and it may be improved in 9.1.
On Ubuntu 15.10 (Wiley) and any JRuby 9000 version. Any invocation of
jruby
orjirb
returns the following error (elided to keep it brief)Per the documentation I checked that
update-alternatives
for bothjava
andjavac
were correct:The workaround is to add the following to your favorite profile or rc
Requesting either fix, or better documentation on wiki for Ubuntu users
I can craft a pull-request for docs if needed.
The text was updated successfully, but these errors were encountered: