Install Pycharm 3.0.1 & Oracle JDK in Ubuntu 13.10

Source: Internet
Author: User
Tags command line pycharm download

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

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

First to Jetbrain official website to select the corresponding operating system version of the latest pycharm download. If you use a virtual machine, you can 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 path to your choice in Ubuntu.

Run to go to the application root in the command line and execute:

$./bin/pycharm.sh

Because mine is a new virtual machine, the command line prompts JDK for errors.

Installing JDK

There are different ways to install JDK in Ubuntu, and here is the easiest way to use apt to install.

Because of copyright issues, Oracle Java downloads are not available in the APT warehouse of Ubuntu, and the following commands are viewed:

$ Apt-cache Search Oracle-java

No packages were searched and viewed again:

$ apt-cache Search Java7
default-jdk-standard Java or Java compatible Development Kit
default-jre-standard Jav A or Java compatible Runtime
default-jre-headless-standard Java or Java compatible Runtime (headless)
openjdk-7-  JDK-OPENJDK Development Kit (JDK)
openjdk-7-jre-openjdk Java Runtime, using Hotspot JIT
openjdk-7-jre-headless -OpenJDK Java runtime, using Hotspot JIT (headless)

Only OPENJDK related packages can be searched.

Because of the licensing issue, the Oracle JDK is not included in the official PPA list, but thanks to the free software contributors, they have produced a PPA that can download the latest version of the JDK from Oracle to the local, automated installation and upgrades. Note that this PPA is an alpha version, and the authors do not promise any protection, and the user takes the risk himself. (Ppa:personal Package Archive)

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

sudo add-apt-repository Ppa:webupd8team/java
sudo apt-get update

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

$ sudo apt-cache search Oracle-java
oracle-jdk7-installer-oracle JDK7 Installer meta Package
Oracle-java7-installer-oracle Java (tm) Development Kit (JDK) 7
oracle-java6-installer-oracle Java (tm) Development Kit (JDK) 6
oracle-java8-installer-oracle Java (TM) Development Kit (JDK) 8
oracle-java7-set-default-set Oracl  E JDK 7 As default Java
oracle-java6-set-default-set Oracle JDK 6 as default Java
Oracle-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-java7-installer

Installation is done automatically, the middle will pop-up prompts to accept Oracle's license terms, all agree on it.

If you need to set the environment variable to do this:

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

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

All right, run pycharm again. Try it, execute:

$./bin/pycharm.sh

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.