Ubuntu 12.04, configure JDK and rubymine

Source: Internet
Author: User

My friend strongly recommended sublime as a rails development IDE, but I am a Java programmer and cannot adapt to it at the moment, so I use rubymine.

0. Download and decompress JDK from the official website

$ tar -xzvf jdk-8u20-linux-x64.tar.gz

 

1. Copy to usr/lib

$ sudo cp -r ~/jdk1.8.0_20 /usr/lib/jvm/

 

2. Configure Environment Variables

$ sudo gedit ~/.profile

Add

export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_20

 

3. Update source and view environment variables

$ source ~/.profile
$ env

If the configuration is correct, the result should be java_home =/usr/lib/JVM/jdk1.8.0 _ 20

 

4. Modify the default JDK

$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_20/bin/java 300$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_20/bin/javac 300$ sudo update-alternatives --config java$ sudo update-alternatives --config javac

 

5. view the JDK version

$ java -version

 

6. Download and decompress rubymine

: Www.jetbrains.com/ruby/

$ tar -xzvf RubyMine-6.3.3.tar.gz

Enter bin and run./rubymine. Sh to open

Set: file --> Settings --> editor --> colors & fonts --> console colors

 

Ubuntu 12.04, configure JDK and rubymine

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.