Eclipse does not automatically use openjdk

Bug #221314 reported by Michael
6
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using Ubuntu Hardy. Output of 'eclipse' on the command line:

searching for compatible vm...
  testing /usr/lib/jvm/java-gcj...not found
  testing /usr/lib/kaffe/pthreads...not found
  testing /usr/lib/jvm/java-6-sun...not found
  testing /usr/lib/jvm/java-1.5.0-sun...not found
  testing /usr/lib/j2se/1.5...not found
  testing /usr/lib/j2se/1.4...not found
  testing /usr/lib/j2sdk1.5-ibm...not found
  testing /usr/lib/j2sdk1.4-ibm...not found
  testing /usr/lib/j2sdk1.6-sun...not found
  testing /usr/lib/j2sdk1.5-sun...not found
  testing /usr/lib/j2sdk1.4-sun...not found

I know that Hardy is now officially released, but perhaps this is still a small enough fix (a one-liner in /etc/eclipse/java_home) to be added to Hardy?

Revision history for this message
exactt (giesbert) wrote :

how did you install eclipse?

Revision history for this message
exactt (giesbert) wrote :

forgot to ask: new install or upgrade?

Revision history for this message
Michael (michaeljt) wrote :

Upgrade of Ubuntu from Gutsy (originally to the Hardy beta), fresh install of Eclipse. Gutsy was a fresh install about a week before the upgrade (I upgraded because Gutsy didn't support my hardware well, and it turned out Hardy did).

sudo apt-get install eclipse eclipse-cdt

Revision history for this message
Jared Sutton (jpsutton) wrote :

same problem here with a fresh install of Hardy, openjdk, and eclipse (from apt, not from tar ball).

Revision history for this message
Jared Sutton (jpsutton) wrote :

Looks like there's a commented line for icedtea in eclipse's java_home file currently...

#/usr/lib/jvm/java-7-icedtea

Perhaps someone could uncomment this and change it to "/usr/lib/jvm/java-6-openjdk" instead and put it in hardy-updates?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.