Ubuntu working with Google Android

Bug #162708 reported by aguy
2
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Trying to develop some Android apps using Ubuntu and come cross google bug # 917579

Can something between ubuntu and google be sorted out so I don't have to do this workaround.

On Ubuntu 7.10 (Gusty), the Eclipse package installed by the apt-get install eclipse command uses java-gcj by default. This configuration is not compatible with the Android Eclipse plugin (ADT) and will result in "Class not found" errors whenever you access an ADT feature.

The resolution for this issue is to install a Sun JDK

sudo update-java-alternatives --jre java-1.5.0-sun

and then configure Eclipse to use it by exporting the following environment variable:

export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun

or by adding following to your .eclipse/eclipserc file:

JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun

Revision history for this message
aguy (astyguy-deactivatedaccount) wrote :

I would rather use ubuntu version of Java than Sun's Java

Revision history for this message
Koen (koen-beek) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in java-gcj-compat.

Daniel T Chen (crimsun)
Changed in java-gcj-compat:
importance: Undecided → Wishlist
Revision history for this message
Matthias Klose (doko) wrote :

reassigning to eclipse; the default in 8.10 and later is OpenJDK.

Revision history for this message
Philippe Coval (rzr) wrote :

FYI, I do android dev using ptk eclipse package and debianized sdk ...

Revision history for this message
Philippe Coval (rzr) wrote :

where is ? bugs;917579 ?

Anyway I feel this bug can converted to question, feel free to open it again once that one is closed :
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/123064

Finally, wouldnt be neat to have ADT packaged as deb too ?

Revision history for this message
Benjamin Drung (bdrung) wrote :

I found bug 917579 by searching the web: http://developer.android.com/sdk/OLD_RELEASENOTES.html
It is a known issue in version m3-rc20a:
"On Ubuntu 7.10 (Gusty), the Eclipse package installed by the apt-get install eclipse command uses java-gcj by default. This configuration is not compatible with the Android Eclipse plugin (ADT) and will result in "Class not found" errors whenever you access an ADT feature."

eclipse 3.5.1 in Ubuntu 9.10 (karmic) is not affected any more. Therefore I close this bug.

@Philippe: Please open a needs-packaging bug for ADT.

Changed in eclipse (Ubuntu):
status: New → Fix Released
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.