Tuesday, September 22, 2015

How to solve libXtst.so.6: cannot open shared object file: No such file or directory, running JDeveloper on ubuntu 14

If you are using JDeveloper on a Ubuntu machine and you get the following error:
 
user@user:~/Oracle/Middleware_1104/jdeveloper/jdev/bin$ ./jdev

Oracle JDeveloper 11g Release 2 (11.1.2.4.0)
Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.

Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/user/Oracle/Middleware_1104/jdk160_24/jre/lib/i386/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.loadLibrary0(ClassLoader.java:1806)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1806)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
    at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
    at java.awt.Component.<clinit>(Component.java:567)
    at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:87)
    at oracle.ide.osgi.boot.JDeveloper.main(JDeveloper.java:14)


You will need to install libxtst6 lib:

user@user:~/Oracle/Middleware_1104/jdeveloper/jdev/bin$ sudo apt-get install libxtst6:i386
 

No comments:

Post a Comment