windows - gradle fails with "could not create jna native library" jndispatch.dll -
just downloaded latest gradle 1.12 release in zip , unzipped it. (c:\dev) when i'm trying run using
c:\dev\gradle-1.12\bin>gradle
i failure:
build failed exception. * went wrong: not create jna native library 'c:\projects\gradle_lib\native\jna\win32-x86\jnidispatch.dll'.
i have had gradle working before on different machine, there may hidden settings in home or secondary home directory polluting gradle install, doubt that. apart never put in c:\projects.
i'm on gradle-1.12, java 1.7.0_55, windows 7 enterprise sp 1.
i don't think build.gradle of importance trying follow spring.boot authentication example
just downloaded version 1.10 has worked before me, giving same trouble.
the complete stack trace debug enabled:
gradle --debug build 12:57:54.089 [debug] [org.gradle.internal.nativeplatform.services.nativeservices] unable initialize native-platform. failure: net.rubygrapefruit.platform.nativeexception: failed load native library 'native-platform.dll' windows 7 x86. caused by: java.io.ioexception: system cannot find path specified 12:57:54.118 [error] [org.gradle.buildexceptionreporter] 12:57:54.120 [error] [org.gradle.buildexceptionreporter] failure: build failed exception. 12:57:54.120 [error] [org.gradle.buildexceptionreporter] 12:57:54.121 [error] [org.gradle.buildexceptionreporter] * went wrong: 12:57:54.121 [error] [org.gradle.buildexceptionreporter] not create jna native library 'c:\projects\gradle_lib\native\jna\win32-x86\jnidispatch.dll'. 12:57:54.176 [error] [org.gradle.buildexceptionreporter] 12:57:54.180 [error] [org.gradle.buildexceptionreporter] * exception is: 12:57:54.190 [error] [org.gradle.buildexceptionreporter] org.gradle.internal.nativeplatform.nativeintegrationexception: not create jna native library 'c:\projects\gradle_lib\native\jna\win32-x86\jnidispatch.dll'. 12:57:54.191 [error] [org.gradle.buildexceptionreporter] @ org.gradle.internal.nativeplatform.jna.jnabootpathconfigurer.configure(jnabootpathconfigurer.java:61) 12:57:54.193 [error] [org.gradle.buildexceptionreporter] @ org.gradle.internal.nativeplatform.services.nativeservices.initialize(nativeservices.java:67) 12:57:54.193 [error] [org.gradle.buildexceptionreporter] @ org.gradle.logging.internal.consoleconfigureaction.execute(consoleconfigureaction.java:30) 12:57:54.193 [error] [org.gradle.buildexceptionreporter] @ org.gradle.logging.internal.consoleconfigureaction.execute(consoleconfigureaction.java:27) 12:57:54.193 [error] [org.gradle.buildexceptionreporter] @ org.gradle.logging.internal.outputeventrenderer.attachconsole(outputeventrenderer.java:68) 12:57:54.194 [error] [org.gradle.buildexceptionreporter] @ org.gradle.logging.internal.defaultloggingmanager.attachconsole(defaultloggingmanager.java:146) 12:57:54.194 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute(commandlineactionfactory.java:168) 12:57:54.194 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.cli.commandlineactionfactory$withlogging.execute(commandlineactionfactory.java:139) 12:57:54.195 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.cli.exceptionreportingaction.execute(exceptionreportingaction.java:33) 12:57:54.195 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.cli.exceptionreportingaction.execute(exceptionreportingaction.java:22) 12:57:54.195 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.main.doaction(main.java:46) 12:57:54.195 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.bootstrap.entrypoint.run(entrypoint.java:45) 12:57:54.195 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.main.main(main.java:37) 12:57:54.196 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.bootstrap.processbootstrap.runnoexit(processbootstrap.java:50) 12:57:54.196 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.bootstrap.processbootstrap.run(processbootstrap.java:32) 12:57:54.196 [error] [org.gradle.buildexceptionreporter] @ org.gradle.launcher.gradlemain.main(gradlemain.java:23) 12:57:54.196 [error] [org.gradle.buildexceptionreporter] caused by: java.io.filenotfoundexception: c:\projects\gradle_lib\native\jna\win32-x86\jnidispatch.dll (the system cannot find path specified) 12:57:54.197 [error] [org.gradle.buildexceptionreporter] @ org.gradle.internal.nativeplatform.jna.jnabootpathconfigurer.configure(jnabootpathconfigurer.java:51) 12:57:54.197 [error] [org.gradle.buildexceptionreporter] ... 15 more 12:57:54.197 [error] [org.gradle.buildexceptionreporter]
my environment variable gradle_user_home
pointing c:\projects\gradle_lib
Comments
Post a Comment