Hi Everybody, I installed jdk8-linux-arm-hf for my AM335x SK, and it works well with my Java Console Applications, which mean I can compile my Java files with javac, and then run class files with java command.
But with my simple Java GUI Applications, even with the simplest one. I can compile them, but failed to run.
Here's my console.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/jdk1.8.0_06/jre/lib/arm/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(ClassLoader.java:1929) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1083) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1835) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1119) at java.awt.Toolkit$3.run(Toolkit.java:1651) at java.awt.Toolkit$3.run(Toolkit.java:1649) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1648) at java.awt.Toolkit.<clinit>(Toolkit.java:1683) at java.awt.Component.<clinit>(Component.java:595)
Here's my display variable
root@am335x-evm:~/workspace/HelloSwing/src# echo $DISPLAY :0.0 root@am335x-evm:~/workspace/HelloSwing/src#
The same issue came with my BeagleBone Black connected to a screen via micro HDMI port, but with a differ Error.
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:259) at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81) at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:122) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:259) at java.awt.Toolkit$2.run(Toolkit.java:872) at java.awt.Toolkit$2.run(Toolkit.java:865) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:864) at java.awt.Toolkit.getEventQueue(Toolkit.java:1749) at java.awt.EventQueue.invokeLater(EventQueue.java:1245) at HelloFrame.main(HelloFrame.java:28)
If any one have an idea to get me through this, it would be appreciated.
Best Regards.