Compilation from sources failed. Could not load FFI provider

Hello,

I have downloaded the sources of jruby for the first time, but I get an
error during compilation.

Could someone help ? Should I post this to dev ?

I am running fedora 9.

java version “1.6.0_07”
Java™ SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot™ Client VM (build 10.0-b23, mixed mode, sharing)
javac 1.6.0_07

Thx
JCLL

gmc_internal:
[echo] Generating invokers…
[java] Exception in thread “main”
java.lang.ExceptionInInitializerError
[java] at java.lang.Class.initializeClass(libgcj.so.9)
[java] at
org.jruby.ext.ffi.Factory.getInstance(Factory.java:100)
[java] at
org.jruby.ext.ffi.MemoryPointer.(MemoryPointer.java:20)
[java] at java.lang.Class.initializeClass(libgcj.so.9)
[java] at java.lang.Class.forName(libgcj.so.9)
[java] at java.lang.Class.forName(libgcj.so.9)
[java] at
org.jruby.anno.InvokerGenerator.main(InvokerGenerator.java:36)
[java] Caused by: java.lang.RuntimeException: Could not load FFI
provider

[java] at
org.jruby.ext.ffi.Factory$SingletonHolder.getInstance(Factory.java:69)
[java] at
org.jruby.ext.ffi.Factory$SingletonHolder.(Factory.java:48)
[java] at java.lang.Class.initializeClass(libgcj.so.9)
[java] …6 more

Hi,

Are you sure you’re really running Sun’s Java VM? The stacktrace shows
that you’re actually running GCJ, not openjdk.

Thanks,
–Vladimir

On Thu, Oct 1, 2009 at 9:12 PM, Jean-Christophe Le Lann
[email protected] wrote:

Java™ SE Runtime Environment (build 1.6.0_07-b06)
[java] at org.jruby.ext.ffi.Factory.getInstance(Factory.java:100)
org.jruby.ext.ffi.Factory$SingletonHolder.getInstance(Factory.java:69)
[java] at
org.jruby.ext.ffi.Factory$SingletonHolder.(Factory.java:48)
[java] at java.lang.Class.initializeClass(libgcj.so.9)
[java] …6 more


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Thx for this answer,

My problem was due to wrong export of JAVA_HOME.

Bye
JC

2009/10/1 Vladimir S. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs