Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install eclips on Linux system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install eclips on Linux system, which is introduced in great detail and has certain reference value. Interested friends must read it!

Eclipse is one of Java developers favorite tools, it has powerful editing, debugging features.

Many people use eclipse as an IDE, but in essence, eclipse is not limited to an IDE, but it implements the general IDE has universal features, and after years of history precipitation, now it has become an essential tool for Java development.

Linux system installation eclipse specific steps: 1. First you have to download JDK and eclipsejdk download URL: www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html eclipse download URL: www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr1/

2. Install JDK 2.1 extract JDK to/usr/lib/jvm folder, so you have to create a new jvm folder under/usr/lib, and to create a new folder under the usr folder you need to obtain root privileges, so you need sudo command. The command to create a new folder jvm under/usr/lib:sudo mkdir /usr/lib/jvm After entering the command, you need to enter the password to execute it. The process of entering the password will not be displayed. Just enter the password and press Enter. After creating the folder, you need to copy JDK to the jvm folder. The command used is:mv jdk-8u121-linux-x64. tar. gz/usr/lib/jvm (you must first use the su command to enter root privileges). Extract it to the/usr/lib/jvm directory. First, you need to go to/usr/lib/jvm directory and extract the file tar zxvf jdk-8u121-linux-x64.tar.gz -C /opt by using cd /usr/lib/jvm.

The unzipped path of the file is: /usr/lib/jvm/

Configure JDK environment variables. (1)Open/etc/profile, open the command sudo vi /etc/profile. After passing this command, you will enter the vim editor. To insert data in the vim editor, you need to use the i command. The common commands of vim are as follows: Cursor movement: h,j , k, l (up/down/left/right) Delete characters: x Delete lines: dd mode Exit: Esc,Insert (or i) Exit editor: q Force exit without saving: q! Run shell command:sh (use exit to return to vi editor) Save file:w Text lookup: / (2) After opening the file, add the following statements at the end of the file, with a blank line between each statement export JAVA_HOME=/opt/jvm/jdk1.8.0_121

export JRE_HOME=${JAVA_HOME}/jre

export CLASSPATH=.:% {JAVA_HOME}/lib:%{JRE_HOME}/lib

export PATH=${JAVA_HOME}/bin:$PATH After entering this content, you need to press ESC first, then press ":", and finally enter wq Enter to exit the save (3) to see if JDK is successfully installed. First enter source /etc/profile and then enter java -version. After successful installation, jdk version will be displayed.

3. install eclipse 3.1 extract eclipse to/opt folder first su root and then cut eclipse to/opt folder

Then, extract eclipse to the/opt folder, the command is: sudo tar zxvf eclipse-inst-linux64.tar.gz -C /opt/

3.2 To create eclipse desktop shortcut icons, type cd /usr/share/applications and sudo vim eclipse.desktop

Finally, copy the following code into the file: [Desktop Entry] Encoding= UTF-8 Name=Eclipse Comment=Eclipse Exec=/opt/eclipse-installer/eclipse-inst Icon=/opt/eclipse-installer/icon.xpm Terminal=false StartupNotify=true Type=Application Categories=Application;Development; where "Exec=" is followed by the path of the eclipse program in the eclipse installation directory, and "Icon=" is followed by the path of the icon image in the eclipse installation directory

3.3 The command to turn eclipse into an executable file is sudo chmod u+x eclipse.desktop.

At this point, the eclipse downloader is installed, and there will be an eclipse downloader on the desktop. Next, click to enter the download interface and download different eclipse versions according to your needs.

3.4 Eclipse installation process is the same as in the window, basically do not need to have other operations, waiting for its own installation success, in this process you need to choose the installation path. After eclipse is installed successfully, click Eclipse icon under eclipse installation directory to open eclipse. My installation directory is: /eclipse/jee-2018-12/

3.5 If you're worried about not finding eclipse's installation directory next time, you can right-click eclipse and copy and paste one onto your desktop.

That's all for "How to install eclips on Linux", thanks for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report