title: Possible solution for "Could not initialize class sun.awt.X11.XToolkit"?
body: <p>I am getting below error while designing layout for the Android app(unable to open the layout in Layout Editor window)</p>
  
  <pre><code>Could not initialize class sun.awt.X11.XToolkit
  Exception details are logged in Window &gt; Show View &gt; Error Log
  </code></pre>
  
  <p>Here is Error Log window:</p>
  
  <p><img src="https://i.stack.imgur.com/TClZW.png" alt="enter image description here"></p>
  
  <p>FYI, i have:</p>
  
  <ul>
  <li>Eclipse Indigo</li>
  <li>ADT to 15.0.1 (Version: 15.0.1.v201111031820-219398)</li>
  <li>Tried to select Target as Android SDK 2.2, 2.3, even 3.0 also, but no success.</li>
  <li>I have "compiler compliance level" as 1.6 (also have 1.7), i have tried to set 1.7 also but having no success.</li>
  </ul>
  
  <p>Do you know the possible solution to this error?</p>
  
  <h2>Update:</h2>
  
  <pre><code>paresh@comp35:~$ java -version
  java version "1.6.0_18"
  OpenJDK Runtime Environment (IcedTea6 1.8.2) (6b18-1.8.2-4ubuntu2)
  OpenJDK Server VM (build 16.0-b13, mixed mode)
  </code></pre>