{"id":25,"date":"2006-02-20T21:09:00","date_gmt":"2006-02-21T02:09:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=25"},"modified":"2010-02-10T23:57:03","modified_gmt":"2010-02-11T04:57:03","slug":"gtkimage-c-line-572-java-error-on-kubuntu","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2006\/02\/20\/gtkimage-c-line-572-java-error-on-kubuntu\/","title":{"rendered":"GtkImage.c: line 572 java error on Kubuntu"},"content":{"rendered":"<p>I installed KUbuntu &#8220;Breezy Badger&#8221; on my new Laptop (Dell Inspiron 700m) but none of my java based tools seemed to be working.<\/p>\n<p>The errors I was getting were as follows:<\/p>\n<hr \/>\n<p>** ERROR **: file ..\/..\/..\/src\/libjava\/jni\/gtk-peer\/gnu_java_awt_peer_gtk_GtkImage.c: line 572 (createRawData): assertion failed: (data_fid != 0)<\/p>\n<p>aborting&#8230;<\/p>\n<hr \/>\n<p>The trick is to use the Sun JVM and not the gcj (GNU Java Compiler). Apparently in Debian threads (on which KUbuntu is based) has this error in gcj-4.0. They promise that it will be fixed in version gcj-4.1 (which comes with gcc-4.1).<\/p>\n<p>So follow these steps to get burp \/ paros etc working:<br \/>1. Goto java.sun.com and install the latest jvm for linux. Choose an appropriate location, mine was installed on \/opt\/jdk1.5.0_06\/.<br \/>2. rm \/usr\/bin\/java \/usr\/bin\/javac \/usr\/bin\/javah. (you remove symbolic links in \/usr\/bin which point the version of java to \/etc\/alternatives).<br \/>3. Create new symbolic links<\/p>\n<p># cd \/usr\/bin<br \/># ln -s \/opt\/jdk1.5.0_06\/bin\/javac javac<br \/># ln -s \/opt\/jdk1.5.0_06\/bin\/javah javah<br \/># ln -s \/opt\/jdk1.5.0_06\/bin\/java java<\/p>\n<p>Now you should be good to go!<\/p>\n<p>-Rajat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed KUbuntu &#8220;Breezy Badger&#8221; on my new Laptop (Dell Inspiron 700m) but none of my java based tools seemed to be working. The errors I was getting were as follows: ** ERROR **: file ..\/..\/..\/src\/libjava\/jni\/gtk-peer\/gnu_java_awt_peer_gtk_GtkImage.c: line 572 (createRawData): assertion failed: (data_fid != 0) aborting&#8230; The trick is to use the Sun JVM and not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[229,340,298],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-howto","tag-error","tag-gtkimage","tag-kubuntu"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":146,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions\/146"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}