how to get java for unbuntu 10.04
what hoops do I have to jump through to get the latest version of java?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu sun-java6 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Brad Ganson
- Solved:
- 2010-08-24
- Last query:
- 2010-08-24
- Last reply:
- 2010-08-24
Brad Ganson (bganson) said : | #2 |
Error: need a repository as argument
run:
gksudo gedit /etc/apt/
add the line:
deb http://
save the new file, close gedit then run:
sudo apt-get update; sudo apt-get -y install sun-java6-jre sun-java6-plugin sun-java6-fonts
Should be ok.
Brad Ganson (bganson) said : | #4 |
ok. did that. Java still doesn't run. Says the program needs something from microsoft.
Please enable Java!!!
If you have AOL or Internet Explorer, please download and install the new Java Virtual Machine from Microsoft: msjava.shtml
Ok can you run:
dpkg -l | grep java
What is output?
Thanks
Brad Ganson (bganson) said : | #6 |
iU java-common 0.34 Base of all Java packages
iHR sun-java6-jre 6.20dlj-1ubuntu3
Neil (goofandfroggie) said : | #7 |
Hi
Have you tried to use Ubuntu software centre?
just type Java in the search it will be the first on the list.
hope this helps
regards
Neil
ok try this:
sudo dpkg -r sun-java6-jre java-common
Does it remove ok?
Brad Ganson (bganson) said : | #9 |
After trying the software centre I got 2 error messages:
the first one before i tried:
sudo dpkg -r sun-java6-jre java-common:
"The installation could have failed because of an error in the corresponding software package or it was cancelled in an unfriendly way. You have to repair this before you can install or remove any further software."
the second afterwards:
"E:I wasn't able to locate a file for the sun-java6-jre package. This might mean you need to manually fix this package. (due to missing arch): "
Sam_ (and-sam) said : | #10 |
Why not installing openjdk-6-jre? Maybe java-common is missing.
update-alternatives --list java
sudo update-alternatives --config java
Reference.
https:/
sudo apt-get -d sun-java6-jre sun-java6-plugin sun-java6-fonts; cd /var/cache/
See if that flys.
Brad Ganson (bganson) said : | #12 |
ok. that all ran with 2 errors:
Errors were encountered while processing:
language-
language-
still get an error message when i try to run this application:
gamecolony.com (backgammon)
Please enable Java!!!
If you have AOL or Internet Explorer, please download and install the new Java Virtual Machine from Microsoft: msjava.shtml
Well duh. The package didn't install so obviously it won't work....
Can you give the output of:
uname -a
Thanks
Brad Ganson (bganson) said : | #14 |
tried this after going to java ubuntu website and applying jdk:
brad@ubuntu:~$ add-apt-repository "deb http://
Error: must run as root
how does one run as root?
meanwhile...here is the answer to your query. pls..no sarcasm.
uname -a:
brad@ubuntu:~$ uname -a
Linux ubuntu 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux
Brad Ganson (bganson) said : | #15 |
with all of this the java seems to work after applying the synaptic manager package. thanks for your help.
oh, cool :)
Glad you got the gold :)