1

I installed JDK 1.8.0 from Oracle, and everything works perfectly. I can create, compile and run java files. But I just downloaded a .jar file and tried running it using java -jar path/name.jar and it gave me the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/java/jdk1.8.0_91/jre/lib/i386/libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory

Whats happening?

Here is my current Java alternative path.

Selection    Path                                      Priority   Status
------------------------------------------------------------
  0            /usr/local/java/jdk1.8.0_91/jre/bin/java   1         auto mode
  1            /usr/local/java/jdk1.8.0_91/bin/java       1         manual mode
* 2            /usr/local/java/jdk1.8.0_91/jre/bin/java   1         manual mode
1

It looks like libawt_xawt.so requires libXext.so.6 but can't find it.

To fix it, try: sudo apt install --reinstall libxext6

Source: http://packages.ubuntu.com/search?searchon=contents&keywords=libXext.so.6&mode=filename&suite=raring&arch=any

1

I see the problem you dont have libXext.so.6 so try reinstalling it with this command

sudo apt install --reinstall libxext6

Or if that doesn't work:

sudo apt remove libxext 
sudo apt install libxext 

If even that doesn't work:

sudo apt purge libxext 
sudo apt install libxext

This should work :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.