Saturday, February 22, 2014

10:16 PM
Good day!

I just want to share my guide on how to install and setup eclipse and netbeans IDE for Java environment and development. If you don't have Java installed yet please see this guide for furthers details https://help.ubuntu.com/community/Java


netbeans

eclipse


Eclipse Setup

First thing we need to do is download the latest eclipse kepler IDE as of this writing. In your terminal issue this command:

For Linux 32bit
$ wget http://download.actuatechina.com/eclipse/technology/epp/downloads/release/kepler/SR1/eclipse-jee-kepler-SR1-linux-gtk.tar.gz
For Linux 64bit

$ wget http://mirror.bjtu.edu.cn/eclipse/technology/epp/downloads/release/kepler/SR1/eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz
 After download you must untar zip it in your home directory where you want the eclipse ide, since im running 32 bit and downloaded 32bit here's how to do it:
$ tar -zxvf eclipse-jee-kepler-SR1-linux-gtk.tar.gz
There, you have now you eclipse installed in your current directory. To run this in your default bash run command, you must configure your .bashrc in your home directory to set the path where you extracted the eclipse directory. Do this:

$ echo export PATH=$PATH:~/eclipse >> ~/.bashrc
 For a quick tweaks to expand jvm memory of eclipse, you must modify the eclipse.ini file located in your eclipse directory.

$ vim eclipse/eclipse.ini
Then modify the

-Xms40m
-Xmx512m

into

-Xms512m
-Xmx1024m

Then do `$ exec $SHELL; eclipse` in your terminal to launch eclipse IDE and your done setting up. Also check out http://marketplace.eclipse.org/ for your eclipse plugins and for more tools. Take note that exec $SHELL will re initiate your current terminal, you can either close it and relaunch then do `$ eclipse` or `$ eclipse &` to run it in the background.


Netbeans Setup

Download the latest netbeans IDE 7.4 as of this writing. Issue this command in your terminal:
$ wget http://download.netbeans.org/netbeans/7.4/final/bundles/netbeans-7.4-linux.sh
 then make it executable, and install it:
$ chmod u+x netbeans-7.4-linux.sh

$ sudo ./netbeans-7.4-linux.sh
Then proceed with the installation wizard, the default directory if you did not change it is on `/usr/local/netbeans-7.4/`

Then add it to your .bashrc
$ echo export PATH=$PATH:/usr/local/netbeans-7.4/bin >> ~/.bashrc
 You will have this .bashrc script if you follow my instruction.

~/.bashrc

After that you can now `$ exec $SHELL; netbeans` or if you have launch new terminal session do `$ netbeans` or `$ netbeans &` to run it in the background. You may also check out http://plugins.netbeans.org/PluginPortal/ for netbeans plugins and tools.

If you are running fluxbox as default X window in your development machine like me, you may have to configure your fluxbox menu.

$ sudo vim /etc/X11/fluxbox/fluxbox-menu
Then add your Eclipse and Netbeans menu like this one in my case @ line 60 and 61.

/etc/X11/fluxbox/fluxbox-menu

Then after that save it then you now have this menu:

menu

Great! You are now done setting up your Eclipse and Netbeans IDE. Hope it helps :-)

0 comments:

Post a Comment