Saturday, July 26, 2008

Java development in Linux

Lot many folks have issues while getting start development in Linux 64bit. Here are some of the workarounds i did in my Fedora Core 9 for the favorite editor eclipse to start showing up it clumsy interface. The default java package coupled with FC9 is Open JDK 1.6.0-b09 (Nice to see Open JDK appearing when i type java --version). Hiccups starts straight away with your default eclipse installation, this does not contain any plugins required for web application. As a web application developer I need my editor equipped with all cool plugins to explore my potential. Okay for a second thought i must download one of the much respected eclipse ide from JBoss community which contain all the wtp plugins. Download the ide from jboss.org. Untar it in one of your specified location (I put it under /usr/local/). When you start eclipse, you suddenly see error in your console, eclipse will complain about the Gtk nodoka theme not found error. Even if you install the gtk-nodoka theme this error won't go off. For eclipse to run its requires gtk+-nodoka-engine.i386 package is required for an x86 architecture. Don't worry yum comes in handy here also, yum repository can install this package for you. yum install gtk-nodoka-engine.i386 After installing this package also eclipse may not startup, it sometimes can complain about about a linkage error which is related to libXtst not found. This package also you can install it from yum repository. Be careful this package also you need to install the i386 arch. yum install libXtst.i386 All the error logs while starting the eclipse can be found in the /workspace/.metadata/.log file. Its is pretty easy to rectify the problem once you understood the problem correctly. After installing all the required packages I was able to see finally the cute JBoss IDE splash. Happy coding

No comments: