Key generation problem in Android Eclipse plugin
After installing a new MyEclipse and Android SDK on your Linux host you will probably run into the problem during key generation. This problem sounds like “Permission denied”.
By default MyEclipse projects use JVM which is installed at <MYECLIPSE_PATH>/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013. It’s quite possible that the keytool which creates key to sign your Android application, is not allowed to execute.
Just check if you have permission to execute keytool:
ls -l <MYECLIPSE_PATH>/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/bin/keytool
Probably you’ll have something like:
-rw-rw-r– 1 andrey andrey 47447 2009-03-09 04:53 /home/andrey/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/bin/keytool
Then just add execution permission:
chmod +x <MYECLIPSE_PATH>/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/bin/keytool
Looks good now:
-rwxrwxr-x 1 andrey andrey 47447 2009-03-09 04:53 /home/andrey/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/jre/bin/keytool
And the key should generate successfully now