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 Ubuntu JDK in Java development environment

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains "how to install Ubuntu JDK in the Java development environment". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install Ubuntu JDK in the Java development environment.

In particular, it is worth mentioning that JDK has a lot to learn, here we mainly introduce Ubuntu JDK, including java and other aspects. Ubuntu contains a very good translation and easy-to-use architecture, which will be continuously provided by the free software community and will make Ubuntu as easy for most people as possible. Manual installation of Ubuntu JDK under Ubuntu has newly installed Ubuntu9.04, and then I will install my Java development environment, first of all, I will install Ubuntu JDK. Google for a while, the way to install Ubuntu JDK is.

Sudo apt-get install sun-java5-jre sun-java5-Ubuntu JDK

I did the same, but I didn't know why the network was so slow and why it was 8 -), so I decided to install Ubuntu JDK manually.

Go to Sun's website to download a Ubuntu JDK Ubuntu JDK-1_5_0_17-linux-i586.bin under Linux

The installation directory of my Ubuntu JDK is in / usr/java

Execute. / Ubuntu JDK-1_5_0_17-linux-i586.bin at the terminal

Execute mv Ubuntu JDK1.5.0_17/ / usr/java at the terminal

Configure JAVA_HOME and CLASSPATH, and add sudo gedit / etc/profile in file *

# set java environment

Export JAVA_HOME=/usr/java/Ubuntu JDK1.5.0_17

Export PATH=$JAVA_HOME/bin:$PATH

Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Save the file and restart Ubuntu. Execute java-version on the terminal after startup. If the following message appears, the Ubuntu JDK installation is successful.

Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)

Java HotSpot (TM) Server VM (build 1.5.0_17-b04, mixed mode)

At this point, the manual installation of Ubuntu JDK is complete.

Then, extract the downloaded linux version of Eclipse3.42 to / usr/java, and Eclipse is installed. Then install the Eclipse plug-in I downloaded. You can move on to Java development.

Thank you for reading, the above is the content of "how to install Ubuntu JDK under the Java development environment". After the study of this article, I believe you have a deeper understanding of how to install Ubuntu JDK under the Java development environment. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Servers

Wechat

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

12
Report