Skip to content

Problems running on Windows #83

@lask79

Description

@lask79

Hi,

I am facing some problems when trying to get this example to run on my Windows machine:
http://mrhaki.blogspot.de/2014/11/awesome-asciidoctor-use-asciidoctor.html

I am getting the following error:

Installing asciidoctor-diagram-1.2.0.gem,asciidoctor-1.5.1.gem
Starting process 'command 'D:\java\jdk\bin\java.exe''. Working directory: D:\workspaces\developer-guide\documentation-template-gradle 
 Command: D:\java\jdk\bin\java.exe -Dfile.encoding=windows-1252 -Duser.country=DE 
 -Duser.language=de -Duser.variant -cp C:\Users\FOX0R5N\gradle\caches\modules-2\files-2.1\org.jruby\jruby-complete\1.7.15\4d9cb332bad3633c9c23a720542f456dc0c58a81\jruby-complete-1.7.15.jar 
 org.jruby.Main -S gem install 
 C:\Users\FOX0R5N\gradle\caches\modules-2\files-2.1\rubygems\asciidoctor-diagram\1.2.0\fd145b1eee21bca7bac8b4c090d1f5ec9a6e30dd\asciidoctor-diagram-1.2.0.gem 
 C:\Users\FOX0R5N\gradle\caches\modules-2\files-2.1\rubygems\asciidoctor\1.5.1\ba1b5e87fbbbdcdbf97ccd98fc57ce494743f439\asciidoctor-1.5.1.gem 
 --ignore-dependencies --install-dir=D:\workspaces\developer-guide\documentation-template-gradle\build\vendor
  -N --platform=java
Successfully started process 'command 'D:\java\jdk\bin\java.exe''
ERROR:  Loading command: install (LoadError)
    Could not load FFI Provider: (NotImplementedError) FFI not available: null
 See http://jira.codehaus.org/browse/JRUBY-4583
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

It seems JRuby can not install the gems because the folder "build/vendors" is still empty. But when I try to install them in the command client with the same input it works:

D:\java\jdk\bin\java.exe -Dfile.encoding=windows-1252 -Duser.country=DE -Duser.language=de -Duser.variant -cp C:\Users\FOX0R5N\gradle\caches\modules-2\files-2.1\org.jruby\jruby-complete\1.7.15\4d9cb332bad3633c9c23a720542f456dc0c58a81\jruby-complete-1.7.15.jar org.jruby.Main -S gem install C:\Users\FOX0R5N\gradle\caches\modules-2\files-2.1\rubygems\asciidoctor-diagram\1.2.0\fd145b1eee21bca7bac8b4c090d1f5ec9a6e30dd\asciidoctor-diagram-1.2.0.gem C:\Users\FOX0R5N\gradle\caches\modules-2\files-2.1\rubygems\asciidoctor\1.5.1\ba1b5e87fbbbdcdbf97ccd98fc57ce494743f439\asciidoctor-1.5.1.gem --ignore-dependencies --install-dir=D:\workspaces\developer-guide\documentation-template-gradle\build\vendor -N --platform=java

I also found out that I can run the gradle build when I start my console with "Run as Administrator". Most of my collegues do not have admin rights on their machine so this is not an option for us.

Do you have any Ideas how I can run this build without admin rights?

Regards
Lasse

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions