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
$ jruby -v
jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) Server VM 24.75-b04 on 1.7.0_75-b13 +jit [solaris-sparc]
$ uname -a
SunOS logo 5.10 Generic_150400-30 sun4v sparc sun4v
$ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) Server VM (build 24.75-b04, mixed mode)
Expected Behavior
I should be able to use -S to run commands or run a .rb file using Java 7. According to the README Java 7 or higher is supported.
Actual Behavior
It attempting to run any command with -S or run a .rb file, I get the following error (it is the same, regardless what what Ruby program or script I try to run):
$ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) Server VM (build 24.75-b04, mixed mode)
$ java -jar jruby-complete-9.1.12.0.jar -S irb
NameError: uninitialized constant FFI::Struct
const_missing at org/jruby/RubyModule.java:3340
<module:Fcntl> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/ffi/platform/x86_64-solaris/fcntl-flock.rb:2
<main> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/ffi/platform/x86_64-solaris/fcntl-flock.rb:1
require at org/jruby/RubyKernel.java:961
<main> at uri:classloader:/jruby/kernel/file.rb:1
load at org/jruby/RubyKernel.java:979
<main> at uri:classloader:/jruby/kernel/file.rb:189
If I change this command and JAVA_HOME to use Java 8 instead, it works as expected. One thing I see in this command is that it's referencing a rb file in x86_64-solaris, even though I'm running the command from a Sparc system. Is that expected?
I believe this is platform specific. If I attempt to run the same jar file from Windows 7 command line using Java 7, and it worked as expected.
The text was updated successfully, but these errors were encountered:
Environment
Expected Behavior
I should be able to use
-S
to run commands or run a .rb file using Java 7. According to the README Java 7 or higher is supported.Actual Behavior
It attempting to run any command with
-S
or run a .rb file, I get the following error (it is the same, regardless what what Ruby program or script I try to run):If I change this command and JAVA_HOME to use Java 8 instead, it works as expected. One thing I see in this command is that it's referencing a rb file in
x86_64-solaris
, even though I'm running the command from a Sparc system. Is that expected?I believe this is platform specific. If I attempt to run the same jar file from Windows 7 command line using Java 7, and it worked as expected.
The text was updated successfully, but these errors were encountered: