Kubuntu: Cannot install any JVM

Asked by hobbes84k

I used the package manager to install Eclipse on my computer. But when I try to run it, I get the following errors:

*** This Eclipse build doesn't have support for the integrated browser.

*** A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
*** /usr/lib/j2sdk1.4sun/bin/java

I've been trying to figure out what I'm missing by using the Ubuntu Eclipse website: https://help.ubuntu.com/community/EclipseIDE and I realized that the /etc/eclipse/java_home file tries to run java files in the /usr/lib/jvm. However, that directory doesn't exist on my computer. I tried using Add/Remove programs and the Adept Package Manager to install either the GCJ JVM or the Sun JVM, but they just aren't there to install.

Every time I try and search for other people with this problem, it just doesn't exist. For everyone else, the Add/Remove programs allows people to install Sun and GCJ is already installed. What should I do? I thought about downloading the Sun JVM from the Sun website, but they don't seem to support Ubuntu so I'm seriously confused.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#1

To install a JRE there are many packages available.

From multiverse (you need to have this repository enabled):

sun-java5-jre
sun-java6-jre

or you can use either of these from universe:

icedtea-java7-jre
kaffe
java-gcj-compat

I'm not familiar with eclipse, but I expect that installing eclipse-gcj (Native Eclipse run with GCJ) should also solve your problem.

Revision history for this message
hobbes84k (kcrobinson) said :
#2

Yes, that worked. I had never heard of repositories before. Thanks.

Revision history for this message
hobbes84k (kcrobinson) said :
#3

Thanks Cesare Tirabassi, that solved my question.