Affects Version/s: JRuby 1.6.2
Fix Version/s: None
Component/s: Core Classes/Modules
Environment:jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-25 ef0212b) (OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-universal-java]
Number of attachments :
Using JRuby built-in ffi and a recent macosx-port Java 1.7 build generates an: "Unsupported platform: unknown-darwin" error.
Seems like the builds report their platform as "unknown-darwin". Also looks like an interaction with JRubies built-in ffi support.
I installed jruby head using rvm using the standard Java 1.6.0_24 on Mac OS X 10.6.7
Then using a recent build of the macosx-port Java 1.7 build:
Expand and copy to ~/Library/Java/JavaVirtualMachines
Open /Applications/Utilities/Java\ Preferences.app and move OpenJDK7 to the top of the list.
Note: this is not an mlvm build – just the macosx-port version based off of the bsd-port.
Now open a new shell.
I then also installed rubygems 1.7.2 (but I don't think that matters):