"1" with the RMP package installation JDK, (previously installed with the source package, but anti-second-interview several methods are not)
Install in/usr/local directory: command
#rpm-IVH jdk.rpm
Then #vi/etc/profile
At the end of the Add environment variable:
#set Java
Export java_home=/usr/local/jdk1.8.0_31
Export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $PATH: $JAVA _home/bin
"2" Copy Eclipse to/usr/local directory, unzip
"3" On the desktop, right-click on the blank, create launcher:
Add a name, and then find the Eclipse executable file in the Eclipse directory, open, OK, and then
Note
1, the type is the application, does not have the terminal, the concrete test will understand.
2, here only in the RPM package test pass, the source package installation may appear in the error:
Error not resolved ....
CentOS Add Eclipse Desktop shortcut