title: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Component
body: <p>When I run MATLAB install script in Ubuntu, I get the following exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.awt.Component
  </code></pre>
  
  <p>longer output is available <a href="http://pastebin.com/4fgu56MV" rel="nofollow">here</a></p>
  
  <p>I know that it's a Java problem and could potentially be fixed by changing the classpath or something like that but I don't exactly know how.</p>
  
  <p>Any Ideas?</p>