AnsweredAssumed Answered

java.awt on iMX6Q link error

Question asked by Iype Joseph on Jan 18, 2013
Latest reply on Jan 23, 2013 by jimmychan
Branched to a new discussion

Hi,

I'm using i.MX6Q Sabrelite and freescale linux. I installed the standard edition of java on the board and could compile and execute all programs but the ones that use java.awt. While executing, I'm getting a linker error. I couldn't find libXtst.so.6 to link with the libmawt.so. Is there a pre-compiled package that I can install to overcome this error? Please find the error below.

 

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/sejdk7/jdk1.7.0_

10/jre/lib/arm/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No

such file or directory

        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)

        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)

        at java.lang.Runtime.load0(Runtime.java:792)

        at java.lang.System.load(System.java:1059)

        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

        at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)

        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)

        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846)

        at java.lang.Runtime.loadLibrary0(Runtime.java:845)

        at java.lang.System.loadLibrary(System.java:1084)

        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)

        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.awt.Toolkit.loadLibraries(Toolkit.java:1648)

        at java.awt.Toolkit.<clinit>(Toolkit.java:1670)

        at java.awt.Component.<clinit>(Component.java:595)

 

Any help in resolving this error is very much appreciated. Thanks in advance,

Iype

 

Outcomes