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