Installing Eclipse on Linux

Source: Internet
Author: User
Tags gtk

The reason to install Eclipse on Linux is that I started by eclipse+mingw+samba+gdbserver the remote operation on Windows, ready to compile debugging Nginx source code, but in the process of compiling debugging, feel very inconvenient. Instead, switch to Linux to install the development environment:

First, Download:

1. JDK

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

64 or 32 bit based on their OS selection download, I downloaded the jdk-8u91-linux-i586

2. Eclipse Integrated CDT Environment

Http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/mars2

I downloaded the Linux 32bit package Eclipse-cpp-indigo-sr1-incubation-linux-gtk.tar

Upload the downloaded package to/usr/local, then unzip

Second, install the JDK:

TAR-ZXVF jdk-8u91-linux-i586

To configure environment variables:

Vim/etc/profile

After opening the file, add the following configuration text to the end of the file, where Java_home is filled out according to the actual JDK directory:

#set Java Environment
java_home=/usr/local/jdk1.8.0_91
Export Java_home
Path= $PATH: $JAVA _home/bin
Export PATH
Classpath=.: $JAVA _home/lib
Export CLASSPATH

Third, configure Eclipse

Go to catalogue/usr/local

TAR-ZXVF Eclipse-cpp-indigo-sr1-incubation-linux-gtk.tar

Now that you see the Eclipse program under directory/usr/local/eclipse/, the following error may be reported when booting:

A Java Runtime Environment (JRE) or Java development Kit (JDK)
Must is available in order to run Eclipse. No Java Virtual Machine
was found after searching the following locations:
/home/injavawetrust/program/eclipse/jre/bin/java
Java in your current PATH

The workaround is to enter your Eclipse directory at the terminal and enter:

mkdir JRE
CD JRE
Ln-s your JDK directory/bin bin

Now you can start eclipse normally and go into the IDE-friendly interface.

Installing Eclipse on Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.