Portal Home > Knowledgebase > Articles Database > Confused trying to install OpenJDK 6
Confused trying to install OpenJDK 6
Posted by yankleber, 01-12-2011, 06:47 PM |
Hi,
I am under Ubuntu 8.04 (i386).
I am trying to install OpenJDK 6, but it is getting very weird. I am trapped on a closed circle, chasing my own tail!
When I tried to install the first package (openjdk-6-jdk_6b18-1.8.3-0ubuntu1~8.04.2_i386.deb), it complained saying that there was a dependency missing. So I tried to install the dependency, and then it asked for another package, and so on, until that I felt in a point that one package is depending on each other (openjdk-6-jre-headless is depending on ca-certificates-java and vice-versa)...
How can I solve this?????
sudo dpkg -i openjdk-6-jdk_6b18-1.8.3-0ubuntu1~8.04.2_i386.deb
depends on >> openjdk-6-jre
sudo dpkg -i openjdk-6-jre_6b18-1.8.3-0ubuntu1~8.04.2_i386.deb
depends on >> openjdk-6-jre-headless
sudo dpkg -i openjdk-6-jre-headless_6b18-1.8.3-0ubuntu1~8.04.2_i386.deb
depends on >> ca-certificates-java
sudo dpkg -i ca-certificates-java_20100406ubuntu1~hardy1_all.deb
depends on >> openjdk-6-jre-headless
Thanks!
|
Posted by ClaudiuPopescu, 01-12-2011, 07:04 PM |
Isn't easier to use aptitude / apt-get ?
|
Posted by jNive, 01-12-2011, 07:48 PM |
Indeed - have you tried using the package manager (which will auto-resolve and install required dependencies)
apt-get install openjdk-6-jdk
or
apt-get install openjdk
etc
If installing packages manually, you will usually have to ignore dependencies for some packages is they in turn depend on that package since manual installs are sequential.
|
Posted by asciiDigital, 01-12-2011, 07:49 PM |
apt-get install openjdk-6-jre
apt-get install openjdk-6-jdk
for:
java runtime environment
java development kit
|
Posted by david510, 01-13-2011, 12:15 AM |
Use this article. You can get the steps.
Install java on ubuntu
|
Add to Favourites Print this Article
Also Read
JaguarPC (Views: 687)