JDK/JRE installation in Ubuntu

Source: Internet
Author: User
Due to license, the Ubuntu release version does not contain Oracle (Sun) java6. instead, it is replaced by OpenJDK, which is the default java version of Ubuntu and the easiest to install. However, some applications specifically emphasize that they cannot use OpenJDK, but must use standard JDK or JRE... due to license, the Ubuntu release version does not contain Oracle (Sun) Java 6 and is replaced by OpenJDK. this is the default java version of Ubuntu and the easiest installation. However, some applications specifically emphasize that they cannot use OpenJDK. Instead, they must use standard JDK or JRE, that is, Oracle (Sun) Java. for example, they must be developed based on the latest mobile platform Tizen recently, to install Tizen SDK 1.0 Larkspur in Ubuntu, you must install Java 6 (jdk 6 or jre 6) rather than OpenSDK ("Oracle Java * v6 or higher version (do not use OpenJDK)"). Www.2cto.com. please install Oracle (Sun) java by yourself. on the Ubuntu help page https://help.ubuntu.com/community/Java Find the corresponding help documentation, which is detailed. Before installing Tizen SDK 1.0 Larkspur, you only need to have a java runtime environment, that is, JRE can be installed. However, considering that it may be used in future development, you only need to install one JDK. This document provides multiple installation methods, which can be automatically installed using scripts or manually installed. To learn more, select the manual installation method to learn the following procedure. The command for installing Oracle java 6 jdk is as follows: [plain] $ wget http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jdk-6u31-linux-i586.bin $ Chmod u + x jdk-6u31-linux-i586.bin www.2cto.com $. /jdk-6u31-linux-i586.bin $ mv jdk1.6.0 _ 31/usr/lib/jvm/$ sudo update-alternatives -- install "/usr/bin/java" "java" "/usr/lib/jvm/ jdk1.6.0 _ 31/bin/java "1 $ sudo update-alternatives -- install"/usr/lib/mozilla/plugins/libjavaplugin. so "" mozilla-javaplugin.so ""/usr/lib/jvm/jdk1.6.0 _ 31/jre/lib/i386/libnpjp2.so "1 enter one by one according to the provided command, the first command is to download the installation file, and the second command is to grant The third item is the executable attribute, but it does not work when it comes to the third command. the following error always pops up :"...... Can not open html: no such file ...... ...... Can not open head: no such file ...... ...... Can not open title: no such file ...... ...... Request not found ...... ....... Can not open link: no such file... ...... Can not open lbody: no such file ........................ Syntax error: redirection unexpected ...... "No one has ever encountered this problem when collecting data online. After trying to install jre on the page, this problem also occurs. In desperation, I was surprised to open it with the vim editor. I downloaded a webpage instead of the installation file !!!!!! Download link provided on this webpage http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jre-6u31-linux-i586.bin Actually ...... It's really speechless! Okay! Hard work !!!!!!! Honestly to Oracle official website to download a jdk-6u32-linux-i586.bin, a look at the official website also has the corresponding installation instructions, step by step according to do, OK finally got it! Some experience at www.2cto.com during this period shows that, without any special requirements, installing the latest software may cause various problems and it is difficult to find a solution.
In addition, you should be calm when you encounter a problem, carefully analyze the cause of the problem through error prompts, find out the nature of the problem, and prescribe the right medicine. remember to ask for help from the Internet, people with the same problems may already have a lot of problems. don't reload the software, restart the system, or even reinstall the system, this method often cannot solve the problem.

Finally, do not trust others or the answers on the internet. everyone may encounter different situations. even in the same situation, there may be a limitation problem. Some answers may be outdated, or it may be slightly different from your situation. what we need to do is to find these differences and solve specific problems based on the specific situation at this moment.
Again, many official websites for software and applications will have very detailed guidance tutorials. we 'd better follow the guidance from here. sometimes, you may find that, after all the twists and turns, I will look back and see that the official website has long explained this special situation or installation requirements and solutions to some common problems. Finally, we must make a careful summary. we may encounter similar and even identical problems in the future !...... From Column zyz316919766
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.