0

It's about a week that i installed eclipse and SDK and ... but even when i open a new Hello World project and i want to run that 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

I also have some problems in Mono for Android.

Can somebody help me ?

Denys Séguret
  • 372,613
  • 87
  • 782
  • 758

1 Answers1

3

Install JDK and set JAVA_HOME in environments variables to path that you JDK was installed. Currently it points to JRE.

Download JDK From Here.

Chirag
  • 56,621
  • 29
  • 151
  • 198