Build a Python development environment in Ubuntu13.10

Source: Internet
Author: User
Create a Python development environment in Ubuntu13.10: Step 1 install JDK (to install ECLIPSEIDE) decompress the installation package and set JDK. The update-alternatives -- install option feature adds a new set of system command links. Tar-zxvfjdk-7u45-linux-x64.tar.gzsudomkdir-p/usr/lib/jvmsudomv./j

Build a Python development environment in Ubuntu 13.10:

Step 1 install JDK (to install eclipse ide)

Decompress the installation package and set JDK.

The update-alternatives -- install option feature adds a new set of system command links.

Tar-zxvf jdk-7u45-linux-x64.tar.gz
Sudo mkdir-p/usr/lib/jvm
Sudo mv./jdk1.7.0 _ 45/usr/lib/jvm/jdk1.7.0
Sudo update-alternatives -- install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1
Sudo update-alternatives -- install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0/bin/javac" 1
Sudo update-alternatives -- install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0/bin/javaws" 1

Use the update-alternatives-config command to select one of the existing command links as the system default.

Sudo update-alternatives -- config java
Sudo update-alternatives -- config javac

For example, if multiple JDK is installed, you can select one as the default one:

$ Sudo update-alternatives -- config java
There are 3 choices for the alternative java (providing/usr/bin/java ).

Selection Path Priority Status
--------------------
* 0/usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1/usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2/usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
3/usr/lib/jvm/jdk1.7.0/jre/bin/java 3 manual mode

Press enter to keep the current choice [*], or type selection number:3
Update-alternatives: using/usr/lib/jvm/jdk1.7.0/jre/bin/java to provide/usr/bin/java (java) in manual mode.

Set the execution permission:

Sudo chmod a + x/usr/bin/java
Sudo chmod a + x/usr/bin/javac
Sudo chmod a + x/usr/bin/javaws
Sudo chown-R root: root/usr/lib/jvm/jdk1.7.0

If you want to install Firefox plugin

Mkdir ~ /. Mozilla/plugins
Ln-s/usr/lib/jvm/jdk1.7.0/jre/lib/amd64/libnpjp2.so ~ /. Mozilla/plugins/
Sudo/etc/init. d/apparmor restart

Check whether java installation is successful

Java-version

Recommended reading:

(Zhou Wei, Zong Jie). [hd PDF scan version + book with video + code] http://www.linuxidc.com/Linux/2013-11/92693.htm

Python script to get Linux information http://www.linuxidc.com/Linux/2013-08/88531.htm

Build Python integrated development environment http://www.linuxidc.com/Linux/2012-06/61649.htm with Eclipse in Ubuntu 12.04

Python details: Click here
Python: Click here

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.