In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the steps of installing Eclipse under Ubuntu11.04". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the steps of installing Eclipse under Ubuntu11.04.
1. Install JDK
The Java environment included in ubuntu 11.04 system is openjdk, and it is best to use sunjdk (the specific reason is unknown, as most online tutorials are like this), so first go to the official website (http://www.oracle.com/technetwork/java/javase/downloads/index.html) to download the JDK installation package of "Java SE 6 Update 26":
Linux x86-Self Extracting Installer (81.20 MB) jdk-6u26-linux-i586.bin
1.1. After downloading, start installing JDK, and enter:
Cd Downloads/
Sudo cp jdk-6u26-linux-i586.bin / opt
Cd / opt
Sudo chmod + x jdk-6u26-linux-i586.bin
1.2. Extract the installation package for installation.
The code is as follows:
Sudo. / jdk-6u26-linux-i586.bin
1.3. Next, configure the environment variables and modify the profile file.
The code is as follows:
Sudo gedit / etc/profile
Add the following code to the text:
# Sun JDK profile
Export JAVA_HOME=/opt/jdk1.6.0_26
Export JRE_HOME=/opt/jdk1.6.0_26/jre
Export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
Export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
1.4. Another file, environment, needs to be modified:
Sudo gedit / etc/environment
Add the following code to the text:
# Sun JDK environment
Export JAVA_HOME=/opt/jdk1.6.0_26
Export JRE_Home=/opt/jdk1.6.0_26/jre
Export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
1.5. Configure JDK manually.
The code is as follows:
Sudo update-alternatives-install / usr/bin/java java / opt/jdk1.6.0_26/bin/java 300
Sudo update-alternatives-install / usr/bin/javac javac / opt/jdk1.6.0_26/bin/javac 300
1.6. Let the system use the JDK we installed.
The code is as follows:
Sudo update-alternatives-config java
1.7. Verify that the JDK installation is successful.
The code is as follows:
Java-version
You will see the following message.
The code is as follows:
Java version "1.6.026"
Java (TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot (TM) Server VM (build 20.1-b02, mixed mode)
two。 Install Eclipse.
2.1. First, extract the downloaded package and enter it in the terminal:
Tar-zxvf eclipse-SDK-3.6.2-linux-gtk.tar.gz
Sudo mv eclipse / opt/
Sudo gedit / usr/share/applications/Eclipse.desktop
Fill in the text with:
[Desktop Entry]
Name=Eclipse
Comment=Eclipse IDE
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Application;Development
2.2 eclipse installation is complete.
At this point, I believe you have a deeper understanding of the "steps to install Eclipse under Ubuntu11.04". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.