When installing Android Studio under Ubuntu, unable to access the graphical interface--/usr/lib/jdk1.8.0_60/jre/lib/i386/libawt_xawt.so:libxtst.so.6: Unable to open the shared object file: No file or directory

Source: Internet
Author: User

Detailed Error Description:

java.lang.reflect.InvocationTargetException
At sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:62)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:497)
At Com.intellij.ide.Bootstrap.main (bootstrap.java:39)
At Com.intellij.idea.Main.main (main.java:83)
caused by:java.lang.UnsatisfiedLinkError:/usr/lib/jdk1.8.0_60/jre/lib/i386/libawt_xawt.so:libxtst.so.6: Unable to open the shared object file: No file or directory
At java.lang.classloader$nativelibrary.load (Native Method)
At java.lang.ClassLoader.loadLibrary0 (classloader.java:1938)
At java.lang.ClassLoader.loadLibrary (classloader.java:1821)
At java.lang.Runtime.load0 (runtime.java:809)
At java.lang.System.load (system.java:1086)
At java.lang.classloader$nativelibrary.load (Native Method)
At java.lang.ClassLoader.loadLibrary0 (classloader.java:1938)
At java.lang.ClassLoader.loadLibrary (classloader.java:1842)
At java.lang.Runtime.loadLibrary0 (runtime.java:870)
At java.lang.System.loadLibrary (system.java:1122)
At Java.awt.toolkit$3.run (toolkit.java:1636)
At Java.awt.toolkit$3.run (toolkit.java:1634)
At java.security.AccessController.doPrivileged (Native Method)
At java.awt.Toolkit.loadLibraries (toolkit.java:1633)
At java.awt.toolkit.<clinit> (toolkit.java:1668)
At java.awt.cursor.<clinit> (cursor.java:195)
At javax.swing.text.html.htmleditorkit.<clinit> (htmleditorkit.java:623)
At com.intellij.util.ui.uiutil.<clinit> (uiutil.java:96)
At Com.intellij.ide.plugins.PluginManager.start (pluginmanager.java:71)
    ... 6 More


Also, an UI exception occurred on attempt to show above message:
Java.lang.NoClassDefFoundError:Could not initialize class Java.awt.Toolkit
At java.awt.component.<clinit> (component.java:593)
At com.intellij.idea.Main.showMessage (main.java:231)
At com.intellij.idea.Main.showMessage (main.java:217)
At Com.intellij.idea.Main.main (main.java:86)

Problem solving:

sudo apt-get install libxtst6:i386

Analysis Process: Combine log information and view secondary link: http://stackoverflow.com/questions/18099614/ Java-lang-noclassdeffounderror-could-not-initialize-class-java-awt-toolkit

When installing Android Studio under Ubuntu, unable to access the graphical interface--/usr/lib/jdk1.8.0_60/jre/lib/i386/libawt_xawt.so:libxtst.so.6: Unable to open the shared object file: No file or directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.