This manual is to help install java (jdk) in Ubuntu / Debian Linux. Previously we discussed about how java’s installation has evolved over a period, then I promised to write an article on installing java on Linux. Yes I love Linux!
Before install you should be aware of couple of things.
‘Generally’ we use sun’s (oracle) jdk. If you do not have precondition on which package, then use sun’s package. FOSS equivalent alternative for sun JDK is openjdk.
Is java already installed in my linux?
Above two commands is the easiest way to identify if java is installed in your linux. But this will work only if you have installed jdk using standard means and the path are setup correctly.
in the above command, sun-java6-jdk is the package name.
As of the time of writing this article sun’s package is not available in the partner repositories. Therefore you will not be able to do live installation using defalut repositories.
Either, you need to add additional repository to your list or download package from available site and install it offline.
You need a live internet connection. Run the following commands sequentially.
Comments on "Install Java in Linux (Ubuntu / Debian)"
This post is really helpful. Thanks and Merry Christmas..! I want to install java in Fedora. Even though Fedora has Linux kernel, I think it will be different from this. Please help in this regard.
Thanks, really a good stuff.
Or download Java from Oracle.
The reference implementation of Java is not Sun Java 7 or Oracle Java 7 any more. It is OpenJDK 7, which is in the repositories now.
So no need of downloading Oracle Java, if there are no bugs in the program that relies on specific bugs in Oracle Java.
Thanks ..i will install in my system right now.
Hi, thanks for the write-up.
as well as purging my old Debian packages before using the PPA ones.
The words comes from my heart, this is the information, i am looking for over a long period!!
I like your effort for this blog..keep it up.This is very nice blog and can know more things about Java..
Actually, i too have a thought to install linux in my machine. After that i will follow your steps to install java in to that.
Thanks a lot. I just installed java in my system.
Comments are closed for "Install Java in Linux (Ubuntu / Debian)".