Install eclipse under ubuntu16.04

Background: Operating system ubuntu16.04 64bits, programming language C/C++, install eclipse in order to debug engineering code such as openssl

1. Install JVM

1.1 Download the JAVA installation package

Download the latest JAVA64-bit installation package jre-8u161-linux-x64.tar.gz from the JAVA official website. The download address is as follows: http://sdlc-esd.oracle.com/ESD6/JSCDL/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/ jre-8u161-linux-x64.tar.gz?GroupName=JSC&FilePath=/ESD6/JSCDL/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jre-8u161-linux-x64.tar.gz&BHost=javadl.sun.com&File=jre-8u161 -linux-x64.tar.gz&AuthParam=1519804899_4580f72be3fb61ffc2bd3a653168321d&ext=.gz

1.2 Unzip the installation package to the directory to be installed

tar -xvzf jre-8u161-linux-x64.tar.gz -C / opt / jvm

1.3 Configure JAVA environment variables

Modify /etc/profile and add the following at the end of the file:

export JAVA_HOME=/opt/jvm/jre1.8.0_161
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib

export PATH=${JAVA_HOME}/bin:$PATH

/opt/jvm/jre1.8.0_161 is determined according to the actual installation version and installation directory.

2. Install eclipse

2.1. Download eclipse

Download the eclipse version to be installed, here is an example of Eclipse IDE for C/C++ Developers Oxygen.2 Release (4.7.2), eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz, find it from the eclipse official website Download the version to be downloaded from the following address: http://ftp.jaist.ac.jp/pub/eclipse/technology/epp/downloads/release/oxygen/2/eclipse-cpp-oxygen-2-linux-gtk- x86_64.tar.gz

2.2 Unzip eclipse to the installation directory

tar -xvzf eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz -C /opt

2.3 Modify eclipse configuration

2.3.1 Modify eclipse.ini

-Xms2048m

-Xmx2048m

Modify to the same value.

2.3.2 Modify shortcut keys

After the above configuration steps are executed, restart the system, enter /opt/eclispe, and double-click the eclipse executable file to open the eclipse executable program.

Window>Preferences>General>Editors>Keys, search for resume, that is, run/continue in keil, set to the button we are used to,

The key settings such as step over, step into, and step return are similar.

2.3.3 Optimize the startup time of eclipse

General > Startup and Shutdown : remove all plugins loaded at startup

General > Editors > Text Editors > Spelling : Turn off spell checking

General > Validation > 勾选“Suspend all validator”

Install/Update > Automatic Updates > 取消勾选“Automatically find new updates and notify me”

Java > Editor > Content Assist > 禁用“Enable Auto Activation”

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324363708&siteId=291194637