A more heavy handed approach for those of you that don't need gcj for anything is to completely remove all packages related to gcj in two commands. Here's the poetry. Caveat emptor if you don't understand it.
# aptitude search gcj | egrep "^i.+" | awk '{print $2}' | tr '\n' ' ' > gcj_must_die.list # cat gcj_must_die.list | xargs aptitude remove -y # rm -rf ~/.android/* hello world should now build assuming you have the Sun java packages installed properly as per the tutorial. -lee On Oct 1, 6:50 am, Lukas Zapletal <[EMAIL PROTECTED]> wrote: > Please make sure you do not have any alternatives on GCJ! > > # ls /etc/alternatives -l | grep gcj > > I am sure you still have keytool, jar and other JDK tools set to GCJ. > Set it properly: > > http://lukas.zapletalovi.com/blog:jak_nainstalovat_javu_6_v_ubuntu_de... > > Then delete .android directory (it contains non-valid keytool file) > and recreate your projects. Youre done. > > ps - Google developers - please add a keytool program version check or > use this via Java API directly > > LZ > > frma71 napsal(a): > > > Hello, > > > I'm trying to follow the tutorial to create and build the HelloAndroid > > example, unfortunately I get > > "Error generating final archive: null HelloAndroid Unknown" in > > the > > Problems view when trying to build/run. I've tried both with eclipse- > > java-europa-winter-linux-gtk.tar.gz and clipse-java-ganymede-linux- > > gtk.tar.gz using jdk/jre: > > > % dpkg -l |grep java6 > > ii sun-java6-bin 6-07-4 > > Sun Java(TM) Runtime Environment (JRE) 6 > > ii sun-java6-jdk 6-07-4 > > Sun Java(TM) Development Kit (JDK) 6 > > ii sun-java6-jre 6-07-4 > > Sun Java(TM) Runtime Environment (JRE) 6 > > ii sun-java6-plugin 6-07-4 > > The Java(TM) Plug-in, Java SE 6 > > % > > > .. and no gcj: > > % dpkg -l |grep gcj > > % > > > Please help/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---