Hi, I am running processing 3.0b5 with the latest android version. The PC is running linux mint 17.1.
When trying to run a simple script i get the following error when trying to run in the emulator: BUILD FAILED /home/richard/Dev/processing-3.0b5/android-sdk-linux/tools/ant/build.xml:958: The following error occurred while executing this line: /home/richard/Dev/processing-3.0b5/android-sdk-linux/tools/ant/build.xml:969: The following error occurred while executing this line: /home/richard/Dev/processing-3.0b5/android-sdk-linux/tools/ant/build.xml:312: com.android.sdklib.build.ApkCreationException: Failed to create key: Cannot run program "/opt/processing3/java/bin/keytool": error=2, No such file or directory JAVA_HOME is set to: /opt/processing3/java
I have altered the /etc/environment file to point the PATH and JAVA_HOME to the the Java-7-oracle directory: sudo nano /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-7-oracle" JAVA_HOME=/usr/lib/jvm/java-7-oracle
and this seems to have been accepted: ~ $ echo $JAVA_HOME /usr/lib/jvm/java-7-oracle ~ $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle $ which java /usr/bin/java
However i am still getting the error indicating that JAVA_HOME is still set to /opt/processing3/java.
It seems that i am doing something wrong with setting teh environment variables maybe. Does anybody know how to fix this?
Any help is much appreciated.
Cheers.