Ubuntu installation Phpstorm and JDK

Source: Internet
Author: User

1. Installing Phpstorm
Download Phpstorm Linux version http://www.jetbrains.com/phpstorm/download/index.html extract compressed files from official website tar xfz phpstorm-*.tar.gz Enter the bin directory of Phpstorm to execute the installation script CD phpstorm-*./phpstorm.sh Setup starts, you need to enter the registration code (optional) User Name:embracelicense during the installation process key:===== LICENSE BEGIN =====43136-1204201000002usvson704l "Dile1pvx3y4" B349AU6OSDJRSJE8NMOQH "8htdjhiuuhgd1bebyc5u" 6oxdbvsalb4eb10pw8 "===== LICENSE END =====



2. Installing the JDK

1, to the Sun's official website download

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html 

Select Accept License and select the JDK download that fits your model.

2, unzip the file, modify the filename

mkdir/usr/lib/tar zxvf jdk-7u21-linux-i586.  Tar.gz-c/usr/lib/JVM $ cd/usr/lib/mv Jdk1.  7.0_21 java    

3. Add Environment variables

sudo vim ~/.BASHRC

Add the following:

Export java_home=/usr/lib/jvm/JAVA export jre_home=${java_home}/JRE export classpath=.:${java_home}/lib:${ jre_home}/   

4. Configuring the default JDK version

sudo update-alternatives--Install/usr/bin/java Java/usr/lib/jvm/java/bin/java300sudo update-alternatives--300 sudo update-alternatives--install/usr/bin/jar jar/usr/lib/jvm/java/bin/jar 300 Span style= "color: #0000FF; line-height:1.5!important;" >sudo update-alternatives--install/usr/bin/javah javah/usr/lib/jvm/ Java/bin/javah 300 sudo update-alternatives--install/usr/bin/javap javap/usr/lib/jvm/ JAVA/BIN/JAVAP 300      

And then execute

sudo update-alternatives--config java

If you first install the JDK, you will be prompted

In Link Group Java (providing/usr/bin/java):/usr/lib/jvm/java/bin/Java does not need to be configured. 

For non-initial installation, there will be different versions of the JDK option.

5. Testing

$ java-"1.7.0_21"1.7.0_21-23.21-b01, mixed mode)    

Ubuntu installation Phpstorm and JDK

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.