How to Install Java Runtime Environment (JRE) in Ubuntu 10.10 (Maverick) using PPA
Java is an object-oriented programming language developed by Sun Microsystems in the early 1990s. Java applications are compiled to bytecode, which at runtime is either interpreted or compiled to native machine code for execution.
The language itself derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. JavaScript, a scripting language, shares a similar name and has similar syntax, but is not directly related to Java.
Install java in ubuntu 10.10
Open the terminal and run the following commands
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6
Ubuntu 10.04(Lucid) users also can install java using this PPA
Why install Sun, Oups Oracle JVM instead of the default Ubuntu JVM : openjdk ?
Some programs just will not work with openjdk. I utilize a program called AirControl for managing Ubiquiti Wireless Access Points and Client gear. It will only function with the Sun (Oracle) Java installed. I’m sure there are other programs as well.
Get:31 http://us.archive.ubuntu.com maverick-updates/main i386 Packages [16.7kB]
Get:32 http://us.archive.ubuntu.com maverick-updates/restricted i386 Packages [14B]
Get:33 http://us.archive.ubuntu.com maverick-updates/universe i386 Packages [3,978B]
Get:34 http://us.archive.ubuntu.com maverick-updates/multiverse i386 Packages [14B]
Fetched 12.8MB in 44s (287kB/s)
Reading package lists… Done
ggosain@ubuntu:~$ sudo apt-get install sun-java6
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package sun-java6
ggosain@ubuntu:~$
first, search the real name of package
$sudo apt-cache search java
…. searchingg,, and the name to installer is
sun-java6-jre
$sudo apt-get install sun-java6-jre
it’s all.
Still can make it work…
john:~$ sudo apt-get install sun-java6-jre sun-java6-bin
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
sun-java6-bin : Depends: unixodbc but it is not installable
sun-java6-jre : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not installable
E: Broken packages
Errors were encountered while processing:
firmware-b43-installer
I get,
E: Broken packages
Have you guys been able to work around this?
Worked just fine.. thanks!
You should also mention that once installed, to be used by default one needs to set it to be so..
This is done by running:
sudo update-java-alternatives -l
((find out the name eg java-6-sun)) and then run:
sudo update-java-alternatives -s java-6-sun
((check the current default java version))
java -version
🙂
I still can’t get the damn java installed. Anyone knopw hoe?
I’m using Ubuntu 10.10 and I followed what you guys said regarding
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
and it tells me theres 1 process and one unchaged process, but when i type
sudo apt-get update
it tells me E: some files failed to download and they have been ignored, or old ones have been used instead
this message was preceeded by a load of 404 not found codes.
im fairly new to this so any help is papreciated
I have tried to install Sun Java 6 Runtime on 10.10 also… and it fails. I have managed to install OpenJDK – but not Sun Java… there has to be a FIX for this.
I got mying to work! I changed the location of where the software was downloading from.
Applications > Ubuntu Software Centre > Edit > Software Sources
Mying was defaulted to Canada!! So I changed it to Main Server… now all is GOOD!!!
Installing Sun Java Runtime as we speak through Terminal – awesome!! Try this ~ it worked for me!
sudo apt-get install sun-java6-jre sun-java6-plugin
Yeah, now I can use Java and my favorite site. Minecraft. 😀
Get:31 http://us.archive.ubuntu.com maverick-updates/main i386 Packages [16.7kB]
Get:32 http://us.archive.ubuntu.com maverick-updates/restricted i386 Packages [14B]
Get:33 http://us.archive.ubuntu.com maverick-updates/universe i386 Packages [3,978B]
Get:34 http://us.archive.ubuntu.com maverick-updates/multiverse i386 Packages [14B]
Fetched 12.8MB in 44s (287kB/s)
Reading package lists… Done
ggosain@ubuntu:~$ sudo apt-get install sun-java6
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package sun-java6
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6*
Just include the * at the end 🙂
I will be damned … I was searching about 10 hours to find that my mistake was only the “*” on the end of line … thx all, specialy to Ghandi…
(Ubuntu 10.10)
hey guys this is what i tried:
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6*
It says the following at the end:
The following packages have unmet dependencies:
sun-java6-bin : Depends: unixodbc but it is not going to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
Anyone has an idea how to fix this? (ubuntu10.10) thanks
yes, I just had the same prob. somehow my main repository was mysteriously disabled.
plz check your souces.list with synaptic, software center or the like and make sure main is enabled.
HTH
thx a lot brother
The tip provided by Venkatesh Gandhi worked. 🙂 Please update the original post to reflect the same.
Thanks.
Bill’s asterisk solution worked for me as well, thanks man!
Post author – could you please update the post with his info? It would really help users in the future.
try this. i got this from other link and worked for me
$sudo apt-cache search java
…. searchingg,, and the name to installer is
sun-java6-jre
$sudo apt-get install sun-java6-jre
hope worked?
Miftah
root@vmd1198:~# /etc/init.d/cardproxy.sh start
Starting : Cardservproxy [ FAILED ]
Startup failed: Unsupported java vm ‘OpenJDK 64-Bit Server VM’, only the original sun vm has been tested with csp.
I just fix my problem by changing synaptics package manager settings, assigned the software center as main (instead of U.S.) as mentioned above.
Thanks Sean and mdmd
thanks dude!
it helped 🙂
Thanks a million! Finally found this solution after searching for almost an hour! 🙂
after i enabled maverick partner:
“sudo apt-get install sun-java6-jre sun-java6-plugin”
in a terminal. works great!
You… Are AWESOME! Finally got this to work. Thank you!
Thanks dude..
[Just include the * at the end ]
thanks for that