0

I try to compile my code on Mobaxterm and am getting all these strange errors. Any idea what I'm doing wrong?

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

If anyone has any idea what's going wrong, i'd really appreciate it.

yonSon
  • 3
  • 4

1 Answers1

0

According to this error message you need to install libXext for i386 (the processor architecture)

libXext is a package for X11 window system

you can check the below links for installation instructions:

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

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

:)

Steven Black
  • 1,988
  • 1
  • 15
  • 25