mobaxterm中的单方面错误

时间:2018-04-04 19:47:21

标签: java

我尝试在Mobaxterm上编译我的代码并得到所有这些奇怪的错误。知道我做错了吗?

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/usr/java/jre1.8.0_151/lib/i386/libawt_xawt.so: libXext.so.6: cannot open 
shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.load0(Unknown Source)
        at java.lang.System.load(Unknown Source)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)//
        at java.lang.System.loadLibrary(Unknown Source)
        at java.awt.Toolkit$3.run(Unknown Source)
        at java.awt.Toolkit$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Unknown Source)
        at java.awt.Toolkit.<clinit>(Unknown Source)
        at java.awt.Component.<clinit>(Unknown Source)
        at biuoop.GUI.<init>(GUI.java:36) //this is a library
        at AbstractArtDrawing.DrawRandomLines(AbstractArtDrawing.java:37)
        at AbstractArtDrawing.main(AbstractArtDrawing.java:15)
make: *** [run2] Error 1

如果有人知道出了什么问题,我真的很感激。

1 个答案:

答案 0 :(得分:0)

根据此错误消息,您需要为libXext(处理器架构)安装i386

libXextX11 window system

的包

您可以查看以下链接以获取安装说明:

的ubuntu
Can't find/install libXtst.so.6?

的centos
CentOS: error: libXext.so.6: cannot open shared object file: No such file or directory

:)