{"id":158,"date":"2011-02-06T14:53:33","date_gmt":"2011-02-06T13:53:33","guid":{"rendered":"http:\/\/trigonakis.com\/blog\/?p=158"},"modified":"2011-02-17T19:38:12","modified_gmt":"2011-02-17T18:38:12","slug":"netbeans-6-9-1-on-ubuntu-10-10-installation-openjdk-problem","status":"publish","type":"post","link":"http:\/\/trigonakis.com\/blog\/2011\/02\/06\/netbeans-6-9-1-on-ubuntu-10-10-installation-openjdk-problem\/","title":{"rendered":"Netbeans 6.9.1 on Ubuntu 10.10 Installation &#8211; OpenJDK problem"},"content":{"rendered":"<p>I wanted to install <strong>Netbeans IDE 6.9.1<\/strong> (C\/C++ version, but I believe that the problem is generic) on my Ubuntu 10.10 laptop, so after downloading the latest version from <a href=\"http:\/\/netbeans.org\/downloads\/index.html\" target=\"_new\">netbeans.org<\/a>, I tried to install it:<\/p>\n<pre lang=\"bash\">\r\n$ ls -l netbeans-6.9.1-ml-cpp-linux.sh\r\n-rw-r--r-- 1 ** ** 36699136 2011-02-06 00:58 netbeans-6.9.1-ml-cpp-linux.sh\r\n$ chmod +x netbeans-6.9.1-ml-cpp-linux.sh\r\n$ sudo .\/netbeans-6.9.1-ml-cpp-linux.sh\r\n<\/pre>\n<p>and got the following output:<\/p>\n<pre lang=\"bask\">\r\nConfiguring the installer...\r\nSearching for JVM on the system...\r\nExtracting installation data...\r\nRunning the installer wizard...\r\nnull\r\n<\/pre>\n<p>The installation wizard (<acronym title=\"Graphical User Interface\">GUI<\/acronym>) did not appear at all.<\/p>\n<p>Luckily, I &#8220;immediately&#8221; thought &#8220;hmm, I re-installed Ubuntu quite recently, did I install <acronym title=\"Java Runtime Environment\">JRE<\/acronym>?&#8221;<br \/>\nSo, I checked if I had &#8220;Java&#8221; installed and checked that everything is &#8220;good&#8221;:.<\/p>\n<pre lang=\"bash\">\r\n$java -version\r\njava version \"1.6.0_20\"\r\nOpenJDK Runtime Environment (IcedTea6 1.9.5) (6b20-1.9.5-0ubuntu1)\r\nOpenJDK Client VM (build 19.0-b09, mixed mode, sharing)\r\n<\/pre>\n<p>As you can see, I had OpenJDK installed..<br \/>\nFor some reason, which I don&#8217;t know, I had already installed the Sun JDK, but not removed the OpenJDK, or at least set the <code>java<\/code> to point to the Sun version.<\/p>\n<p>So, using <em>synaptic<\/em>, I unistalled OpenJDK (you can (un)install OpenJDK and Sun JDK from the Software Center also):<\/p>\n<pre lang=\"bash\">\r\n$java -version\r\njava version \"1.6.0_22\"\r\nJava(TM) SE Runtime Environment (build 1.6.0_22-b04)\r\nJava HotSpot(TM) Server VM (build 17.1-b03, mixed mode)\r\n<\/pre>\n<p>And then, everything worked fine..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to install Netbeans IDE 6.9.1 (C\/C++ version, but I believe that the problem is generic) on my Ubuntu 10.10 laptop, so after downloading the latest version from netbeans.org, I tried to install it: $ ls -l netbeans-6.9.1-ml-cpp-linux.sh -rw-r&#8211;r&#8211; 1 ** ** 36699136 2011-02-06 00:58 netbeans-6.9.1-ml-cpp-linux.sh $ chmod +x netbeans-6.9.1-ml-cpp-linux.sh $ sudo .\/netbeans-6.9.1-ml-cpp-linux.sh and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[37,28,7],"tags":[33,9,32,34,31],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ouW6-2y","_links":{"self":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/158"}],"collection":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":9,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":202,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/202"}],"wp:attachment":[{"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/trigonakis.com\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}