Install Oracle Java 7 in [X]Ubuntu 12.04 Precise via PPA
Oracle Java is the alternative to OpenJDK package, but is not longer available in Ubuntu repositories (due to some change in Java License). Oracle Java remains my choice because I find it to work better with some applications (specially java web applets).
If you want to give OpenJDK a try, view here instructions to install it.
“WebUpd8” team provides a PPA with one package that automatically downloads and installs Oracle Java JDK/JRE/Plugin 7 from its official website and installs it on your computer.
Install
Open a terminal window and run:
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get update
sudo apt-get install oracle-java7-installer
Seriously, this saved my life ! I've been struggling all day trying to install Java on Xubuntu, but failed miserably. Until i found this! :)
ReplyDeleteThis works great, it's easy and simple. For everyone else struggling, use this PPA to install!
Cheers!
Thanks for your appreciation. I'm glad to be helpful :)
Deleteis necessary to uninstall open jdk 6 if i want oracle java 7 or can i have bouth of them? what is the best choice? now i have mint 13 xfce
ReplyDeleteplease help!
publius
You can install both. Then you can use the command: "sudo update-alternatives --config java" to choose between them.
ReplyDeleteI only use the Oracle version because I need to use a program that doesn't work very well with OpenJDK, otherwise I would only use OpenJDK.
and i have another problem: how to add a new user? with google is nothing to find!
ReplyDeletethank you!
To add a new user go to: Applications Menu > System > Users and Groups. Probably tomorrow I'll write a new post on the subject, with screenshots explaining the process.
Deletethank you for the answers!
ReplyDeletemy admiration for your blog! best!
I find Java really confusing. There is so many different files when I look java up in its directory, and I am not sure what I use for what. Is there a good article to read about Java on linux?
ReplyDeleteJava is cross-platform, so once you understand the technology it doesn't matter which system you're run it on. I hope that this getting start guide will make things clearer: http://goo.gl/AjLVc
DeleteAt glance there are to main tools:
javac - to compile source code
java - to run java programs
Another tool that's often used by developers is the "javadoc" which produces documentation for the source code.
Finally there are two more tools for running applications:
javaw - similar to java but its doesn't have an associated console window. But since you're running Linux you can ignore it, because it's a MS Windows command.
javaws - used to run web start applications (http://goo.gl/SfuUF)
Thanks for sharing, I will bookmark and be back again
ReplyDeleteJava Training Courses
Thanks for sharing..Works perfectly..
ReplyDeleteI'm glad that helped.
DeleteAs a Linux noob - Thank you!
ReplyDeleteThanks for this tip! I'd been looking for Oracle Java for my Xubuntu 13.04.
ReplyDeleteI like this post!
ReplyDeleteThanks.
DeleteThanks For your guidance, but unfortunately it show me some dpkg problem
ReplyDeleteCould you paste the error here?
DeleteThank you so much, I'm surprised that this still works!
ReplyDeleteYou, sir, are a god! This still freakin' works!
ReplyDelete