NetBeans 7.1构建错误:java.lang.UnsatisfiedLinkError libXtst.so.6:错误的ELF类:ELFCLASS64
作者:互联网
由于在NetBeans 7.1上出现以下错误,我无法使用jdk 1.7.0来构建我的项目,而在jdk 1.7.0上的Eclipse上却可以正常工作.有谁知道我该如何解决这个问题?
Output:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/jdk.1.7.0/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: wrong ELF class: ELFCLASS64
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)
at java.awt.Toolkit.<clinit>(Toolkit.java:1670)
at java.awt.Component.<clinit>(Component.java:595)
Java Result: 1
解决方法:
那是因为您正在64位平台上运行32位JVM.安装64位JDK,您就可以使用了.我有相同的错误,因为我正在尝试运行32位JDK.
标签:netbeans-7,building,java 来源: https://codeday.me/bug/20191201/2084022.html