Installing Pycharm 5 & Oracle JDK in Ubuntu 14.04

Source: Internet
Author: User
Tags oracle java download pycharm download

Due to licensing issues, Oracle Java is no longer included in newer Linux distributions and is replaced by OPENJDK. So is Ubuntu.

OpenJDK can meet most of the application operating conditions, but Pycharm cannot run under openjdk conditions, so the Oracle Company's JDK needs to be installed.

First go to Jetbrain official website Select the corresponding operating system of the latest version pycharm download. If you use a virtual machine, you can use Thunderbolt to download it in the host and then transfer it to the virtual machine. The downloaded file should be the. tar.gz format, which can be used after extracting the selected path from Ubuntu.

run by entering the application root at the command line, executing:

$./bin/pycharm.sh

Because my new virtual machine is being made, the command line prompts for JDK errors.

Installing the JDK

There are different ways to install the JDK in Ubuntu, which provides a personal feel for the simplest way to install with apt.

Because of copyright issues, the Oracle Java download is not available in the APT warehouse in Ubuntu and is viewed by executing the following commands:

$ Apt-cache Search Oracle-java

Search for no packages, view again:

$ apt-cache Search Java8default-jdk-standard Java or Java compatible development Kitdefault-jre-standard Java or Java Compatible Runtimedefault-jre-headless-standard Java or Java compatible Runtime (headless) openjdk-8-jdk-openjdk Develo  Pment Kit (JDK) openjdk-8-jre-openjdk Java Runtime, using Hotspot jitopenjdk-8-jre-headless-openjdk java runtime, using Hotspot JIT (headless)

  

Only the relevant packages for openjdk can be searched.

Because of licensing issues, Oracle JDK is not included in the official PPA list, but thanks to the contributors of free software, they have created a PPA that can download the latest version of the JDK from Oracle to the local, automatic installation and upgrade. Note that this PPA is an alpha version and the author does not promise any protection and the user assumes the risk. (Ppa:personal package Archive)

Execute the following command to add the PPA, and then update apt.

sudo add-apt-repository ppa:webupd8team/javasudo apt-get update

After the update is complete, search for the JDK package:

$ sudo apt-cache search oracle-javaoracle-jdk7-installer-oracle JDK7 installer meta Packageoracle-java7-installer-orac Le Java (TM) Development Kit (JDK) 7oracle-java6-installer-oracle Java (TM) Development Kit (JDK) 6oracle-java8-installer -Oracle Java (TM) Development Kit (JDK) 8oracle-java7-set-default-set Oracle JDK 7 as default Javaoracle-java6-set-defau Lt-set Oracle JDK 6 as default Javaoracle-java8-set-default-set Oracle JDK 8 as default Java

Searching for the latest JDK, I chose to install Java7 and execute:

sudo apt-get install Oracle-java8-installer

The installation is done automatically, and in the middle there will be a pop-up prompt asking to accept Oracle's license terms, all agreed upon.

If you need to set environment variables you can do this:

sudo apt-get install Oracle-java8-set-default

If Oracle-java6-set-default or Oracle-java7-set-default are installed, they will be automatically replaced with the current settings.

Well, run Pycharm again, try it, execute:

$./bin/pycharm.sh

  

The new version (Phpstorm +/webstorm 11+/pycharm 5+) has not been able to simply use the registration code.

This time we cracked need to use License server, there is a domestic cracked, self-built authentication server, input http://idea.lanyus.com can be verified. The installation ends at this point.

Installing Pycharm 5 & Oracle JDK in Ubuntu 14.04

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.