The Eclipse plugin (and the Ant build system) requires access to keytool to create a debug key. Keytool is provided with the JDK. In order for Eclipse to access keytool, it looks for the JAVA_HOME environment variable.
Setting it to the root folder of the JDK will make Eclipse find it. Xav On Wed, Nov 12, 2008 at 3:42 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > I am running android HelloAndriod example under eclipse 3.4 on ubuntu. > > But I see these exceptions: > [2008-11-12 10:56:37 - HelloAndroid] Failed to create debug key: > Cannot run program "keytool": java.io.IOException: error=2, No such > file or directory > [2008-11-12 10:56:37 - HelloAndroid] JAVA_HOME seems undefined, > setting it will help locating keytool automatically > [2008-11-12 10:56:37 - HelloAndroid] You can also manually execute the > following command: > [2008-11-12 10:56:37 - HelloAndroid] keytool -genkey -alias > AndroidDebugKey -keyalg RSA -dname "CN=Android Debug, O=Android, C=US" > -validity 365 -keypass android -keystore /home/yinglcs/.android/ > debug.keystore -storepass android > > Can you please tell me how to fix my problem? > > Thank you. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

