Sei sulla pagina 1di 2

3/14/2016 Install Eclipse Mars 4.5 on Fedora 23/22, CentOS/RHEL 7.2/6.7/5.

11 | If Not True Then False

CentOS Fedora Linux Red Hat (RHEL)

Install Eclipse Mars 4.5 on Fedora 23/22, CentOS/RHEL


7.2/6.7/5.11
by JR | Published: Jul 28, 2010 | Updated: Jan 14, 2016 | 162 comments

221
SHARES
166 46 3 3 3

This is guide, howto install latest Eclipse Mars.1 4.5.1 on Fedora, CentOS and Red Hat
(RHEL). This guide should work with Fedora 23/22/21/20/19/18/17/16/15/14/13/12, CentOS
7.2/6.7/5.11 and Red Hat (RHEL) 7.2/6.7/5.11 and even with earlier versions.

Eclipse is a multi-language software development environment comprising an integrated


development environment (IDE) and an extensible plug-in system. It is written primarily
in Java and can be used to develop applications in Java and, by means of various plug-
ins, other languages including C, C++, COBOL, Python, Perl, PHP, Scala and Ruby (including Ruby on Rails
framework).

Install Eclipse Mars.1 4.5.1 on Fedora 23/22/21/20, CentOS/Red


Hat (RHEL) 7.2/6.7/5.11
1. Install Sun/Oracle Java JDK 8
Install Sun/Oracle Java JDK 8 on Fedora, CentOS, Red Hat (RHEL)

2. Download Eclipse Mars.1 4.5.1


Download suitable version from www.eclipse.org/downloads. This guide uses Eclipse IDE for Java Developers
version. Another popular versions are Eclipse IDE for Java EE Developers and Eclipse for PHP Developers. Select
also 32-bit or 64-bit version depending on your system.

3. Change root user


Shell

su -
## OR ##
sudo -i

4. Extract Eclipse package (example to /opt directory)

Shell

## x86 - 32-bit ##
tar -xvzf eclipse-java-mars-1-linux-gtk.tar.gz -C /opt

## x86_64 - 64-bit ##
tar -xvzf eclipse-java-mars-1-linux-gtk-x86_64.tar.gz -C /opt

5. Add read permissions to all files

Shell

chmod -R +r /opt/eclipse

http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/ 1/7
3/14/2016 Install Eclipse Mars 4.5 on Fedora 23/22, CentOS/RHEL 7.2/6.7/5.11 | If Not True Then False

6. Create Eclipse executable on /usr/bin path

Shell

touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse

Most Popular Featured Linux
## Open eclipse file with your favorite editor ##
Programming Servers SQL YUM Command Line Advertise U

>
nano -w /usr/bin/eclipse

## Paste following content to file ##
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

7. Create Gnome desktop launcher

Shell

## Create following file, with our favourite editor ##
/usr/share/applications/eclipse.desktop

## Add following content to file and save ##
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse Mars.1 4.5.1
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

8. Start Eclipse 4.5.1


From command line use eclipse command (as normal user!)

Shell
2
eclipse

From Desktop menu Gnome 3 Eclipse 4.4.2

http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/ 2/7

Potrebbero piacerti anche