Seems like a stupid question, I know but I need some confirmation before I actually run the following command.
The plugin meaning java will work in browser right?
sudo apt-get install openjdk-7-jdk openjdk-7-jre icedtea-7-plugin
And will the code I posted work on Ubuntu 12.04?
EDIT: A fellow member Chessemill came up with this method.
Will either of them work? Cheesemill's way will actually keep java up to date.
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Which way is actually preferred?