PDA

View Full Version : [ubuntu] Problems finding OpenJDK



Crispness
March 8th, 2012, 04:29 PM
Hi

having some problems finding and installing OpenJDK (now that we are discouraged from installing 'real' java.

This is the response I get

sudo apt-get install openjdk-7-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package openjdk-7-jre

Any suggestions on what I should do next?

Thanks

Crispness
March 8th, 2012, 04:30 PM
Sorry. Should have said ..

Ubuntu Server 10.04LTS
New clean install

kostkon
March 8th, 2012, 06:15 PM
Try

sudo apt-get install openjdk-6-jre

Crispness
March 9th, 2012, 10:38 AM
That did the trick!

Thanks

So you would wonder why does the OpenJDK website suggest the 7 is available?

http://openjdk.java.net/install/

ottosykora
March 9th, 2012, 01:59 PM
That did the trick!

Thanks

So you would wonder why does the OpenJDK website suggest the 7 is available?

http://openjdk.java.net/install/

well assume for 10.04 there is the version 6 in the repository, in some more recent ubuntu versions the 7 might come up.