Reminder to myself: eclipse, java, JRE versions and android…
Just a little tip that may help in case of errors with the android plugin for eclipse (ADT): eclipse itself should be run using sun java 1.5 or later. Having the correct JRE installed on your system is not enough if you still have an old version (for exemple gcj-1.4.x) and if your system is not correctly configured. (For example, it can easilly happen in Dapper.)
When the problem happens, it’s typically when you try to indicate android developer tools to eclipse. The error message I got is the following:
Unable to create the selected preference page.
com/google/android/adt/preferences/AndroidPreferencePage (Unsupported
major.minor version 49.0)
To fix the problem at least two solutions were fine for me:
- using the
-vmcommand line argument when launching eclipse (for exampleeclipse -vm /usr/lib/jvm/java-1.5.0-sun/bin/ &) - saving the setting in a less volatile way : see http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JRE
Have fun with Android!
