Ubuntu14.04jdk installation and configuration

Source: Internet
Author: User
(1) jdk installation requires Pycharm in Ubuntu, but Pycharm is written in Java, so jdk must be installed. There are a lot of installation methods. I found a suitable Ubuntu on the official website and provided the following documents: ========================================================== ==== Installationofthe64-bitJDKonLinuxPlatformsThisproced

(1) jdk Installation

You need to use Pycharm in Ubuntu, but Pycharm is written in Java, so jdk must be installed. There are a lot of installation methods. I found a suitable Ubuntu on the official website and provided the following documents:

========================================================== ====

Installation of the 64-bit JDK on Linux Platforms

This procedure INSTALLThe Java Development Kit (JDK) for 64-bit Linux, using an archive binary file (.tar.gz ).

These instructions use the following file:

jdk-8uversion-linux-x64.tar.gz
  1. Download the file.

    Before the file can be downloaded, you must accept the license agreement. the archive binary can be installed by anyone (not only root users), in any location that you can write. however, only the root user can install the JDK into the system location.

  2. Change directory to the location where you wowould like the JDK to be installed, then move the .tar.gz archive binary to the current directory.

  3. Unpack the tarball and install the JDK.

    % tar zxvf jdk-8uversion-linux-x64.tar.gz

    The Java Development Kit files are installed in a directory called jdk1.8.0 _ version in the current directory.

  4. Delete the .tar.gz file if you want to save disk space.

========================================================== ====

Obviously, sometimes you may find that reading official English documents is better than searching for tutorials on the Internet. Although there are many online tutorials, sometimes they are also messy. At this time, it is better to look for official documents. Link can see here: http://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html

After the installation is complete, decompress jdk in the/usr/lib/java directory.

(2) Configure Environment Variables

Run the following command:

1 echo "PATH=$PATH:/usr/lib/java/jdk1.8.0_65/bin" >> ~/.bashrc

Make the configuration take effect:

1 source ~./bashrc

Enter java:

123456 xpleaf@leaf:~$ java Usage: java [-options] class [args...]           (Execution class)   Or java [-options]-jar jarfile [args...]           (Execute the jar file)......................

Relatively simple.

(3) Better installation and configuration methods

Of course, you must do it yourself. If you think it is too troublesome, you should use the online method. Another benefit of doing so is that you do not need to manually configure it.

1. Update the software source first.

Sudo apt-get update

If there is always a problem when updating the software source, you can consider changing the software source, just put/etc/source. you can modify the content in the list. For which update source is better, check your network environment. I can search for some items on Baidu. It is recommended that I use domestic products.

2. Install jdk

Sudo apt-get install openjdk-8-jre

If you are prompted that you do not have the software, it indicates that it is a problem with the software source. Change the software source.

3. Enter java

If you enter java, a prompt is displayed, indicating that the configuration has been completed for us.

Ubuntu 14.04 install JDK1.8.0 _ 25 and configure the environment variable http://www.linuxidc.com/Linux/2015-01/112030.htm

Build JDK environment http://www.linuxidc.com/Linux/2015-06/118879.htm with CentOS

Ubuntu 14.04 install JDK1.8.0 _ 25 and configure the environment variable http://www.linuxidc.com/Linux/2015-01/112030.htm

Ubuntu 14.04 LTS install Oracle JDK 1.8 http://www.linuxidc.com/Linux/2014-11/109216.htm

CentOS6.3 install JDK and environment configuration http://www.linuxidc.com/Linux/2012-09/70780.htm

Ubuntu 14.04 install JDK8 http://www.linuxidc.com/Linux/2014-09/106218.htm

Install JDK graph analysis http://www.linuxidc.com/Linux/2014-09/107291.htm under Ubuntu

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-02/128120.htm

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.