FYI, I am getting the same errors (Could not locate JNA native lib resource) on AIX 6.1 Power (IBM Java) and HP-UX 11.31 IA64 and PA-RISC (HP Java) and on Linux IBM System z (IBM Java). I installed gradle-1.0-milestone-5-20111007085726+0200-all. This snapshot does not abort with 'gradle -v', but aborts later when used in our production environment:
—
$ /opt/gradle-1.0-milestone-5-20111007/bin/gradle -D.... clean build
13:39:58.998 [main] INFO o.g.l.i.TerminalDetectorFactory - Unable to find native jna lib for current platform: AIX 7.1 ppc64. Details: Could not locate JNA native lib resource '/com/sun/jna/aix-ppc64/libjnidispatch.a'.
FAILURE: Build aborted because of an internal error.
What went wrong:
Build aborted because of an unexpected internal error. Please file an issue at: http://www.gradle.org.
Try:
Run with --debug option to get additional debug info.
Exception is:
java.lang.UnsatisfiedLinkError: jnidispatch (/com/sun/jna/aix-ppc64/libjnidispatch.a) not found in resource path
at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:698)
at com.sun.jna.Native.loadNativeLibrary(Native.java:678)
at com.sun.jna.Native.<clinit>(Native.java:106)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.gradle.os.jna.NativeEnvironment$Unix.<init>(NativeEnvironment.java:95)
at org.gradle.os.jna.NativeEnvironment.current(NativeEnvironment.java:51)
at org.gradle.launcher.daemon.registry.PersistentDaemonRegistry.<init>(PersistentDaemonRegistry.java:44)
at org.gradle.launcher.daemon.client.ExternalDaemonConnector.<init>(ExternalDaemonConnector.java:52)
at org.gradle.launcher.daemon.client.ExternalDaemonConnector.<init>(ExternalDaemonConnector.java:48)
at org.gradle.launcher.cli.CommandLineActionFactory.createAction(CommandLineActionFactory.java:130)
at org.gradle.launcher.cli.CommandLineActionFactory.convert(CommandLineActionFactory.java:94)
at org.gradle.launcher.Main.doAction(Main.java:48)
at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53)
at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51)
at org.gradle.launcher.exec.Execution.execute(Execution.java:28)
at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39)
at org.gradle.launcher.Main.main(Main.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:51)
at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33)
at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
—
|