• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install Eclipse 4.7 Oxygen on CentOS 7

2441

To Install Eclipse 4.7 Oxygen on CentOS 7

Eclipse is a powerful IDE for various programming languages and is used to build JAVA based web applications. In this tutorial, we are going to cover the method to install Eclipse Oxygen 4.7 on CentOS 7 in an easy and simple manner.


Installing Eclipse 4.7 Oxygen

First, make sure have installed Java before you proceed with the installation of Eclipse. So, get the latest Java version.

[root@linuxhelp ~]# wget --no-cookies --no-check-certificate --header " Cookie: oraclelicense=accept-securebackup-cookie"   >    http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz
-2018-02-09 15:32:31--  http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz
Resolving download.oracle.com (download.oracle.com)... 23.211.208.37
Connecting to download.oracle.com (download.oracle.com)|23.211.208.37|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz [following]
.
.
2018-02-09 15:38:53 (912 KB/s) - ‘ jdk-9.0.4_linux-x64_bin.tar.gz’  saved [354635831/354635831]

Once it is done, you need to extract the Java file by making use of the following command.

[root@linuxhelp ~]# tar zxf jdk-9.0.4_linux-x64_bin.tar.gz -C /usr/local


After extracting archive file use alternatives command to install it.

[root@linuxhelp ~]# cd /usr/local/jdk-9.0.4/
[root@linuxhelp jdk-9.0.4]# alternatives --install /usr/bin/java java /usr/local/jdk-9.0.4/bin/java 2

And then, you need to configure it.

[root@linuxhelp jdk-9.0.4]# alternatives --config java
There are 2 programs which provide ' java' .

Selection    Command
-----------------------------------------------
*+ 1           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64/jre/bin/java)
2           /usr/local/jdk-9.0.4/bin/java

Enter to keep the current selection[+], or type selection number: 2

At this point, JAVA 9 has been successfully installed on your system. We also recommend to setup javac and jar commands path using alternatives commands in the following manner.

[root@linuxhelp jdk-9.0.4]# alternatives --install /usr/bin/jar jar /usr/local/jdk-9.0.4/bin/jar 2
[root@linuxhelp jdk-9.0.4]# alternatives --install /usr/bin/javac javac /usr/local/jdk-9.0.4/bin/javac 2
[root@linuxhelp jdk-9.0.4]# alternatives --set jar /usr/local/jdk-9.0.4/bin/jar
[root@linuxhelp jdk-9.0.4]# alternatives --set javac /usr/local/jdk-9.0.4/bin/javac

And once it is done, you need to check the installed version.

[root@linuxhelp jdk-9.0.4]# java -version
java version " 9.0.4" 
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

Once it is done, you need to setup JAVA_HOME Variable as an environment variable.

[root@linuxhelp jdk-9.0.4]# export JAVA_HOME=/usr/local/jdk-9.0.4

You should also create a PATH Variable.

[root@linuxhelp jdk-9.0.4]# export PATH=$PATH:/usr/local/jdk-9.0.4/bin

Now, you can go on board with the download of Eclipse. You can do that from its official site: https://www.eclipse.org/downloads/eclipse-packages/?osType=linux& release=undefined
download


Once the file is downloaded, you need to extract the archive.

[root@linuxhelp Downloads]# tar -zxvf eclipse-jee-oxygen-2-linux-gtk-x86_64.tar.gz -C /usr/local/
eclipse/
eclipse/p2/
eclipse/p2/org.eclipse.equinox.p2.engine/
eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/
eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.jee.profile/
eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.jee.profile/1513587876936.profile.gz
eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.jee.profile/.lock
eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.jee.profile/.data/
.
.
eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse/configuration/config.ini
eclipse/configuration/org.eclipse.update/
eclipse/configuration/org.eclipse.update/platform.xml


Now, for configuration, you need to create an eclipse binary symbolic link to make it accessible system-wide.

[root@linuxhelp Downloads]# ln -s /usr/local/eclipse/eclipse /usr/bin/eclipse


Type eclipse on command prompt to launch the Eclipse IDE. Follow the next step to create an Eclipse desktop launcher. The Eclipse IDE is accessible from the command line. In this step create a desktop launcher for the Eclipse. In this step simply create an eclipse.desktop file on your system at below location.

[root@linuxhelp Downloads]# vim /usr/share/applications/eclipse.desktop

And make the following modification.

[Desktop Entry]
Name=Eclipse
Comment=Eclipse IDE
Type=Application
Encoding=UTF-8
Exec=/usr/bin/eclipse
Icon=/usr/local/eclipse/icon.xpm
Categories=GNOME Application Development 
Terminal=false
StartupNotify=true
~                                                                         
~                                                                         
~                                                                         
~                                                                         
~                                                                         
~
" /usr/share/applications/eclipse.desktop"  10L, 212C     10,1          All        

Now, you need to go to the application and choose Programming and then choose Eclipse.
program

With this, the installation of Eclipse comes to an end.

Tags:
gabriel
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How to install eclipse on Linuxmint?

A

For the installation of the Eclipse on Linuxmint, use the following link as given below "https://www.linuxhelp.com/how-to-install-eclipse-oxygen-ide-in-linux-mint-18-3/"

Q

How to get the official documentation of the Eclipse?

A

Get the official documentation for the Eclipse , use the following link as given below "https://www.eclipse.org/oxygen/".

Q

How do I increase the heap size available to Eclipse?

A

Some JVMs put restrictions on the total amount of memory available on the heap. If you are getting OutOfMemoryErrors while running Eclipse, the VM can be told to let the heap grow to a larger amount by passing the -vmargs command to the Eclipse launcher. For example, the following command would run Eclipse with a heap size of 256MB:

eclipse [normal arguments] -vmargs -Xmx256M [more VM args]

The arguments after -vmargs are directly passed to the VM. Run java -X for the list of options your VM accepts. Options starting with -X are implementation-specific and may not be applicable to all VMs.

Q

Does Eclipse run on any Linux distribution?

A

Each release of Eclipse is tested on a set of officially supported platforms:

Eclipse Platform 4.7 (Oxygen)
Eclipse Platform 4.6 (Neon)
Eclipse Platform 4.5 (Mars)

The latest releases should normally work fine on any recent Linux distribution. But the Linux graphical UI systems change fast and it is entirely possible that newer releases of Eclipse will not work on older distributions, and similarly older releases of Eclipse may not work on newer distributions.

Portability of Eclipse is defined mainly by the underlying Java runtime (Eclipse 4.6 and later needs a Java 8 runtime) and by what platform SWT runs on, as all graphical UI in Eclipse are based on SWT.

For historical interest, earlier versions of Eclipse have also been compiled with gcj (http://www.klomp.org/mark/classpath/eclipse-gnome-gij.png) and even made to run on .Net, using IKVM on the CLR or Mono through the amazing work of Jeroen Frijters.

Q

Can I install plug-ins outside the main install directory?

A

Users who like to “live on the edge” will be frequently installing new builds of Eclipse. When a new build is installed, a manual step is generally required to copy over any extra plug-ins from the old build to the new one. We all know how much programmers hate manual steps, so it would be nice if there were an easy way to link a set of external plug-ins into Eclipse builds. A mechanism to do that is called a product extension.

A product extension must be laid out on disk in a certain way so the Eclipse configuration tools can recognize it. Following is the disk layout for a product extension that contains a single plug-in called org.eclipse.faq.examples.

eclipse/
.eclipseextension
plugins/
org.eclipse.faq.examples/
plugin.xml
examples.jar
... optionally more plug-in directories ...
features/
... features would go here ...

Related Tutorials in How to Install Eclipse 4.7 Oxygen on CentOS 7

Related Tutorials in How to Install Eclipse 4.7 Oxygen on CentOS 7

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to Install Eclipse 4.7 Oxygen on CentOS 7

Related Forums in How to Install Eclipse 4.7 Oxygen on CentOS 7

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
OpenVAS
frank class=
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Dec 20, 2018
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Gibbson ?
How do i run both nginx and apache in same instance on centos

Hi...,

my server is based centos operating system and my webserver is already running on Apache.... i need to run both apache and nginx on same instance ... please help me to implement this concept...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.