In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail what are the problems related to the installation of JDK in Ubuntu. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
1.JDK download: sun provides two kinds of JDK under linux: one is similar to windows self-extracting file (jdk-6u6-linux-i586.bin), and the other needs to be installed in rpm (jdk-6u5-linux-i586-rpm.bin). I use the former one, which is easy to operate.
two。 Download tomcat, eclipse
3. Enter shell, find the storage path of downloading JDK, enter ". / jdk-6u6-linux-i586.bin", you will be prompted whether to agree or not, enter "yes", and then automatically create a folder after installation. I am jdk1.6.0_06 here, and the installation files are all placed in this directory. Cd jdk1.6.0_06 goes in to have a look. Then modify / etc/environment, type sudo vi / etc/environment, modify PATH first, add "/ home/ username / jdk/jdk1.6.0_06/bin:.:" in front of it, followed by "." Represents the current directory. Then add two lines after the file:
JAVA_HOME= "/ home/ username / jdk/jdk1.6.0_06"
CLASSPATH= "/ home/ username / jdk/jdk1.6.0_06/lib:."
Export JAVA_HOME
Export CLASSPATH
Save exit.
Restart Linux (reload method can be used in Linux to load modified files, you can try if you are interested).
Enter Linux, type java-verison, is there any familiar information?
The message that may appear at this time is not consistent with the version of JDK you installed, and I have been caught by this problem for a long time. In fact, in the process of installing ubuntu, you may have installed a JRE, at this time, you can use the command "which java" to find the installed JRE, it will display a file. Using "ls-l" to view the file properties, you will find that it is a Link file, and then "ls-l" until you find its true identity, I found that it is a package:gij1.4.2. Using sudo apt-get remove-- purge gij1.4.2, delete the installed JRE, and you will be prompted to type "yes" and then contitue. When you are done, restart Linux and type java-version to see if it is installed correctly. In this way, the ubuntu installation of JDK is almost complete, leaving only Tomcat and Eclipse.
Tomcat installation is much easier. Enter tar apache-tomcat-6.0.16.tar.gz and decompress it (decompress it directly under xwindows). Enter apache-tomcat-6.0.16/bin and start startup.sh. If you start with terminal, you will find that the startup information is much less than that under windows, which will not affect your use. Open firefox and type http://127.0.0.1:8080 to see if a cat appears. If it is, it's a success.
Eclipse is even easier, unzip and double-click on ok.
This is the end of this article on "what are the problems of Ubuntu installing JDK?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
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.