should this happen? java.lang.System.getProperty("os.arch") => 'universal'
Stephen Bannasch
stephen.bannasch at deanbrook.org
Wed Apr 27 10:51:58 PDT 2011
I have an interesting problem using a recent macosx-port build with JRuby.
JRuby includes an FFI layer which would like to know what arch the JVM it is being run in uses. It's expecting values like:
"x86_64".
However a currtent macosx-port build returns an arch of "universal":
$ java -version; jruby -rjava -e 'p java.lang.System.getProperty("os.arch")'
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-b00)
OpenJDK 64-Bit Server VM (build 21.0-b03, mixed mode)
"universal"
Trying the same operation using the system Java returns: "x86_64"
$ java -version; jruby -rjava -e 'p java.lang.System.getProperty("os.arch")'
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
"x86_64"
I've entered a JRuby issue: http://jira.codehaus.org/browse/JRUBY-5737?
Currently Hiro Asari has commited a JRuby change which adds "universal" as one of the accepted architectures -- but this isn't
likely to work with the JRuby FFI implementation which needs more specific information on the arch.
I'm not certain that responding with 'universal' is the correct response for the macos-port OpenJDK 1.7 build.
More information about the macosx-port-dev
mailing list