Install PyCharm and JDK on Ubuntu 12.04

Installing Sun JDK 7 on Ubuntu 12.04:
  • Download the sun jdk 7 tar file from here
  • Extract the tar file:
$ tar -xvzf jdk-7u4-linux-x64.tar.gz
  • Move extracted folder to this location:
$ sudo mv jdk1.7.0_04 /usr/lib/jvm/
  • Install new java source in system: 
$ sudo update-alternatives --install \
/usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_04/bin/javac 1 
$ sudo update-alternatives --install \
/usr/bin/java java /usr/lib/jvm/jdk1.7.0_04/bin/java 1 
$ sudo update-alternatives --install \
/usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_04/bin/javaws 1
  • Choose default java:
$ sudo update-alternatives --config javac 
$ sudo update-alternatives --config java 
$ sudo update-alternatives --config javaws
  • java version test:
$ java -version
  • Verify the symlinks all point to the new java location:
$ ls -la /etc/alternatives/java*
  • Enable Java plugin for Mozilla Firefox (even for Chrome)
#for 64-Bit jdk 
$ sudo ln -s /usr/lib/jvm/jdk1.7.0_04/jre/\
lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins 
#for 32-Bit jdk 
$ sudo ln -s /usr/lib/jvm/jdk1.7.0_04/jre/\
lib/i386/libnpjp2.so /usr/lib/mozilla/plugins
  • JAVA_HOME configuration:
Some tools require JAVA_HOME variable. You can set JAVA_HOME in Ubuntu so simple: Edit the file .bashrc under your home directory and add the following lines: (if .bashrc is hidden click in Nautilus Menu View > Show Hidden Files)
export JAVA_HOME=/path/your/jdk 
export PATH=$JAVA_HOME/bin:$PATH

Install pycharm on ubuntu 12.04:
$ tar -xvzf pycharm-2.6.2.tar.gz 
$ cd /pycharm-2.6.2/bin/ 
$ ./pycharm.sh &
  • pycharm license:
usernameyueting3527 
license: 
===== LICENSE BEGIN ===== 
93347-12042010 
00001FMHemWIs"6wozMZnat3IgXKXJ 
2!nV2I6kSO48hgGLa9JNgjQ5oKz1Us 
FFR8k"nGzJHzjQT6IBG!1fbQZn9!Vi 
===== LICENSE END =====

sources: 
http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/
http://www.qinbin.me/pycharm-license/

 

About these ads

6 comments on “Install PyCharm and JDK on Ubuntu 12.04

  1. fake123@123.com says:

    Thanks!!

  2. eZ says:

    Does it work using openJDK insted Sun Java?

  3. […] Začneme tudíž instalací samotného Pycharmu. Postup je podrobně popsán na téhle stránce http://sumnous.wordpress.com/2012/10/17/install-pycharm-and-jdk-on-ubuntu-12-04/ , takže tady nebudu uvádět […]

  4. you are truly a excellent webmaster. The web site loading pace is incredible.
    It sort of feels that you are doing any distinctive trick.
    Also, The contents are masterwork. you have performed a magnificent
    process on this matter!

  5. […] Začneme tudíž instalací samotného Pycharmu. Postup je podrobně popsán na téhle stránce http://sumnous.wordpress.com/2012/10/17/install-pycharm-and-jdk-on-ubuntu-12-04/ , takže tady nebudu uvádět podrobnosti. Základní příkazy pro […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s