-3

Possible Duplicate:
Error generating projects in Eclipse

It's about a week I installed eclipse and Android SDK .But when I wanna run my project (even when I open a new Hello World project), eclipse shows this error:

"Error generating final archive: Failed to create key: Cannot run program "C:\Program Files\Java\jre7\bin\keytool.exe": CreateProcess error=2, The system cannot find the file specified

JAVA_HOME is set to: C:\Program Files\Java\jre7 Update it if necessary, or manually execute the following command:

"C:\Program Files\Java\jre7\bin\keytool.exe" -genkey -alias AndroidDebugKey -keyalg RSA -dname "CN=Android Debug,O=Android,C=US" -validity 10950 -keypass android -keystore C:\Users\BEHZAD\.android\debug.keystore -storepass android"

Even I can't open keytool.exe : "Windows can't find 'C:\Program Files\Java\jdk1.7.0_05\bin\Keytool.exe ' make sure you typed the name correctly, and try again"

I also have some problems with Keytool.exe in Mono for Android.

Community
  • 1
  • 1

2 Answers2

1

This problem is pretty common, a simple google search brings up lots:

Tried many answers to get my keytool.exe to open but failed

Further to that, I don't think you are using the keytool the way it is supposed to be used.

How can I find and run the keytool

Community
  • 1
  • 1
ddoor
  • 5,819
  • 9
  • 34
  • 41
0

please uninstall jdk then install jdk1.7 and check i thing problem solve. main error indicate the jdk problem .tyr it and tell me..all the best

ckpatel
  • 1,926
  • 4
  • 18
  • 34