Could not load FFI Provider

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Could not load FFI Provider

idc101
(Thanks again for the great work on AsciiDoctor)

I have asciidoctor working fine on Linux, now I have been trying to get the same thing to work on Windows (7) and I get this:

Caught: org.jruby.exceptions.RaiseException: (LoadError) Could not load FFI Provider: (NotImplementedError) FFI not available: com/kenai/jffi/Platform

After googling I have tried:
* Setting TMP
* Setting TEMP
* Setting neither TMP or TEMP
* Setting both
* Setting java.io.tmpdir

Nothing seems to work. I'm running asciidoctor from a groovy script, (no gradle) and using JRuby 9.1.2.

Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Could not load FFI Provider

mojavelinux
Administrator
I'm pretty sure this is a known issue with Windows and JRuby 9k. I think it happens when the TMP and TEMP environment variables are not set.


-Dan

On Wed, Jun 29, 2016 at 10:25 PM, idc101 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
(Thanks again for the great work on AsciiDoctor)

I have asciidoctor working fine on Linux, now I have been trying to get the same thing to work on Windows (7) and I get this:

Caught: org.jruby.exceptions.RaiseException: (LoadError) Could not load FFI Provider: (NotImplementedError) FFI not available: com/kenai/jffi/Platform

After googling I have tried:
* Setting TMP
* Setting TEMP
* Setting neither TMP or TEMP
* Setting both
* Setting java.io.tmpdir

Nothing seems to work. I'm running asciidoctor from a groovy script, (no gradle) and using JRuby 9.1.2.

Any ideas?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Could-not-load-FFI-Provider-tp4806.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Could not load FFI Provider

idc101
As I said I had tried setting TEMP and TMP but that did not help.

However using jruby-complete rather than just jruby does solve the problem. Then I hit another problem:

Caught: org.jruby.exceptions.RaiseException: (SystemCallError) Unknown error 123 - FindFirstFile
org.jruby.exceptions.RaiseException: (SystemCallError) Unknown error 123 - FindFirstFile
        at RUBY.symlink?(uri:classloader:/jruby/kernel/file.rb:127)
        at RUBY.<module:Prawn>(uri:classloader:/gems/prawn-1.3.0/lib/prawn.rb:15)
        at RUBY.<top>(uri:classloader:/gems/prawn-1.3.0/lib/prawn.rb:11)

Has also been reported here:
https://github.com/jruby/jruby/issues/3957

Cheers
Iain