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