java.awt on iMX6Q link error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

java.awt on iMX6Q link error

1,443 Views
iypejoseph
Contributor II

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

Labels (4)
4 Replies

1,147 Views
iypejoseph
Contributor II

Hi,

I tried using embedded java, still I'm getting the same error as there is no libXtst.so.6 file in the /usr/lib path. Anyone know from where I can find the binaries?

Thanks,

Iype

0 Kudos

1,147 Views
jimmychan
NXP TechSupport
NXP TechSupport

so, you can try to install the package libXtst and libXtst-dev in your host.

1,147 Views
iypejoseph
Contributor II

Thank You jimmychan,

Unfortunately I can't use dpkg, apt-get or similar commands on freescale linux to install the .deb packages. Is there another way to install?

0 Kudos

1,147 Views
jimmychan
NXP TechSupport
NXP TechSupport

I don't sure which filesytem are you using. Basically, I think you can try to download the source code and then compile it using LTIB.