Prerequisites, the JDK is already available in the system. Ubuntu has built-in OPENJDK.
The Eclipse in Ubuntu Software Library is the basic version, only JDT and PDE, unable to develop the Java EE program, this is not the same as fedora, so you can only manually install the Eclipse Java Edition.
1. To eclipse.org to download the Eclipse Compression Pack for Ubuntu, the latest version of the Eclipse package file name should be eclipse-jee-kepler-sr1-linux-gtk.tar.gz for the 32-bit system, and the downloaded compression pack will be placed in Under the ~/downloads directory;
2. Unzip eclipse to/usr/share directory: Enter terminal window, enter command sudo tar-zxvf eclipse-jee-kepler-sr1-linux-gtk.tar.gz-c/usr/share. Then you will be prompted to enter the password, do it;
3. Add eclipse to the Ubuntu app menu (just like set up a program group in the Windows Start menu):
3.1. Enter the command in the terminal window: sudo gedit/usr/share/applications/eclipse.desktop
3.2. Enter the following text in the editor:
[Plain]View PlainCopy
- [Desktop Entry]
- Name=eclipse Java EE
- Comment=eclipse IDE for Java EE
- Exec=/usr/bin/eclipse
- icon=/usr/share/eclipse/icon.xpm
- Terminal=false
- Type=application
- Categories=application;development;
4. Create an execution script for eclipse in/usr/bin:
4.1. Execute the command in the terminal window: sudo gedit/usr/bin/eclipse
4.2. Enter the following in the Gedit editor:
[Plain]View PlainCopy
- #!/bin/sh
- Export Eclipse_home= "/usr/share/eclipse"
- $ECLIPSE _home/eclipse $*
4.3. Set the eclipse execution script to executable:sudo chmod 755/usr/bin/eclipse
Ok!
How to install Eclipse Java ee in ubuntu