Cant get Java to run

Asked by moreyjr4

Guys, i cant get java to work. I have followed all instructions but when i run Java supported programs it wont work.
Sorry, not an IT guy here. What do u need to know from me to help?

I am using: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu firefox-3.0 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
moreyjr4 (johnlovesstacy2002) said :
#1

when in the terminal... what all do i type in to install java

Revision history for this message
Ralph Janke (txwikinger) said :
#2

Thanks for the question.

You need to install the sun java jre:

sudo apt-get update
sudo apt-get install sun-java6-jre

and then select this as your default java jre with

sudo update-java-alternatives

Hope this helps.

Revision history for this message
moreyjr4 (johnlovesstacy2002) said :
#3

How do I get this and do this.. Im sorry im new with this operating system

Revision history for this message
moreyjr4 (johnlovesstacy2002) said :
#4

ok i tried to do that but now i get this
Describe your new note here.E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.
 how do i fix this and still do the other problem again

Revision history for this message
moreyjr4 (johnlovesstacy2002) said :
#5

ok my package manager is messed up while installing an update and this keeps popping up not allowing me to update anything this is the message i get Describe your new note here.E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.
how do i fix this problem

Revision history for this message
AndrewJBeen (ajbeen) said :
#6

I had a similar issue.

If you type 'sudo dpkg --configure -a' in the terminal window, this should clear up the installation issue.

Otherwise, booting into Ubuntu using the recovery mode is a good idea. A menu appears offering to fix broken packages and you can fix an issue with installation from there.

I hope this helps.

Thanks,

Andrew

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

give your user password when requested, you don't see nothing when you type it, then press enter.

----------------------------------------------------------------------------------------------------------------

Then to install java:

How to install Java

To install sun-java6
Be sure all software sources are selected under menu: System->Administration->Software source: Ubuntu software

Then open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo aptitude update
sudo apt-get upgrade
sudo aptitude install sun-java6-bin sun-java6-jre sun-java6-plugin

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask moreyjr4 for more information if necessary.

To post a message you must log in.