Anda di halaman 1dari 4

Install Eclipse SDK 4.3.

1 (Kepler) on Fedora 20/19,


CentS/!"E# $.%/%.10
Updated by JR on Dec 2, 2013 in CentOS, Featured, Fedora, IDEs and Tools, Linux, Most
Popular, Programming, Programs, Red Hat (RHEL) | 146 comments
Do you like this?
Object 2
Object 3
This is guide, howto install latest Eclipse SDK 4.3.1
(Kepler) on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora
20/19/18/17/16/15/14/13/12, CentOS 6.5/6.4/6.3/6.2/6.1/6/5.10 and Red Hat
(RHEL) 6.5/6.4/6.3/6.2/6.1/6/5.10 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 SDK 4.3.1 (Kepler) on Fedora 20/19/18,
CentOS/Red Hat (RHEL) 6.5/5.10
1. Install Sun/Oracle Java JDK 7
Install Sun/Oracle Java JDK 7 on Fedora, CentOS, Red Hat (RHEL)
2. Download Eclipse SDK 4.3.1 (Kepler)
Download suitable version from www.eclipse.org/downloads. This guide uses Eclipse Classic 4.3.1 version. Another
popular versions are Eclipse IDE for Java EE Developers, Eclipse IDE for Java Developers and Eclipse for PHP
Developers. Select also 32-bit or 64-bit version depending on your system.
3. Change root user
su -
## OR ##
sudo -i
4. Extract Eclipse package (example to /opt directory)
## x86 - 32-bit ##
tar -xvzf eclipse-standard-kepler-R-linux-gtk.tar.gz -C /opt

## x86_64 - 64-bit ##
tar -xvzf eclipse-standard-kepler-R-linux-gtk-x86_64.tar.gz -C /opt
5. Add read permissions to all files
chmod -R +r /opt/eclipse
6. Create Eclipse executable on /usr/bin path
touch /usr/bin/eclipse
chmod !! /usr/bin/eclipse
Object 1
131

Take ownership on the whole directory: sudo chown -R
$USER:$USER
/opt/eclipse/configuration/org.eclipse.osgi
## Open eclipse file with your favourite editor ##
nano -" /usr/bin/eclipse

## aste followin! content to file ##
#"#bin#sh
export #C$%&'#_()*#+,/opt/eclipse,

-#C$%&'#_()*#/eclipse -.
7. Create Gnome desktop launcher
## $reate followin! file% with our favourite editor ##
/usr/s/are/applications/eclipse.desktop

## &dd followin! content to file and save ##
01esktop #ntr23
#ncoding+456-8
7a8e+#clipse
Co88ent+#clipse '19 4.:.;
#xec+eclipse
%con+/opt/eclipse/icon.xp8
5er8inal+false
52pe+<pplication
Categories+=7)*#><pplication>1evelop8ent>
'tartup7otif2+true
8. Start Eclipse 4.3.1
From command line use eclipse command
eclipse
From Desktop menu Gnome 3 Eclipse 4.3.1
From Desktop menu Gnome 2 and Eclipse 3.6 (Helios)
9. Eclipse 4.3 screenshot, running on Fedora 19 64-bit
Troubleshooting
If you get something like following errors:
Failed to load the JNI shared library /usr/java/jdk1.6.0_21/jre/bin/../lib/i386/client/libjvm.so
Or
/usr/java/jdk1.6.0_21/jre/bin/../lib/i386/client/libjvm.so: cannot enable executable stack as shared object
requires: Permission denied
Then do following:
c/con -t exec8e8_exec_t ?/opt/eclipse/eclipse?
and try again.

Anda mungkin juga menyukai