Install JDK.
Search all the available jdk versions
$ apt-cache search openjdk
Install openjdk
$ sudo apt-get install openjdk-7-jdk
Verify if JDK is installed properly,
$ java-version
check $JAVA_HOME is empty,
echo $JAVA_HOME
Set that (this is optional)
$ sudo echo "export JAVA_HOME=\"/usr/lib/jvm/java-7-openjdk-i386/\"" >> ~/.bashrc
Reference:
www.mkyong.com
Author: Abhilash
Hi, Iโm Abhilash! A seasoned web developer with 15 years of experience specializing in Ruby and Ruby on Rails. Since 2010, Iโve built scalable, robust web applications and worked with frameworks like Angular, Sinatra, Laravel, Node.js, Vue and React.
Passionate about clean, maintainable code and continuous learning, I share insights, tutorials, and experiences here. Letโs explore the ever-evolving world of web development together!
View all posts by Abhilash