That may be a bug in the Ubuntu update-java-alternatives, then. It should fix up all those references.
I use Ubuntu, but I do not have GCJ installed, so I get the right keytool by default. You can either: -- remove GCJ, if you are not otherwise using it, and update-java-alternatives again -- write your own shell script (e.g., keytool_android) pointing to the right one -- manually set up the symlink from /usr/bin/keytool to the right one On Sat, Mar 19, 2011 at 9:56 AM, Syed Rakib Al Hasan <syed.rakib.al.ha...@gmail.com> wrote: > thanks man...... i have found my solution by using the keytool from the > Java6 bin directory..... and it has worked in a snap. > however, to understand this thing better...... seeing from the link you > suggested i have tried the following in my terminal and this is what i found > rakib@rakib-laptop:~$ sudo update-alternatives --config java > There are 2 choices for the alternative java (providing /usr/bin/java). > Selection Path Priority Status > ------------------------------------------------------------ > 0 /usr/bin/gij-4.4 1044 auto mode > 1 /usr/bin/gij-4.4 1044 manual mode > * 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode > Press enter to keep the current choice[*], or type selection number: > rakib@rakib-laptop:~$ > as you can see /usr/lib/jvm/java-6-sun/jre/bin/java is already my active > Java...... mentioned by the Asterisk star at left. still my terminal keyword > keytool did not point to the sun-java-keytool....... it pointed to the gij > keytool. > - rakib > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en