Unable to locate javac #60
Comments
Solution found based on comments on improperly filed issue in main Processing repo. You need to create a symbolic link in the Processing.app package to |
Thanks for this! Worked a treat. |
still get error [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found. -set-mode-check: -set-debug-files: -check-env: -setup: -set-debug-mode: -debug-obfuscation-check: -pre-build: -build-setup: API<=15: Adding annotations.jar to the classpath. -code-gen: -pre-compile: -compile: -post-compile: -obfuscate: -dex: BUILD FAILED Total time: 9 seconds |
I´m having the same issue that wanglongly mentioned above. [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found. -set-mode-check: -set-debug-files: -check-env: -setup: -set-debug-mode: -debug-obfuscation-check: -pre-build: -build-setup: API<=15: Adding annotations.jar to the classpath. -code-gen: -pre-compile: -compile: -post-compile: -obfuscate: -dex: BUILD FAILED Total time: 16 seconds |
I solved this on Windows by copying the contents of my JDK folder to the "\java" subfolder where I had Processing installed. Heavy handed, but it worked.
Just to note, if you try and update the Android SDK location in the preferences.txt file, it gets overwritten . Not sure why they have a preference setting if it is just going to get overwritten every time. Also, setting the "JAVA_HOME" variable did absolutely nothing in my case. |
@jones065 i did this on MAC , and can't start processing then.... |
Hello all The fix posted up above works for Mac. I re-wrote it a bit and posted it on my blog: http://theproce55.tumblr.com/post/82883027743/fixing-android-development-in-processing-2-1-1 |
Same problem here (with Mac OSX), only a bit worse, I think, because there's no javac file anywhere on this computer. I'm guessing we need to download the 200MB-odd JDK from the Oracle site to try and sort this out? It's not a great internet connection, so I'd rather try something else. How come there's no download link for 2.0.3 on the Processing site any more? |
There is, it's just not linked. |
Ah, thanks @agoransson! Already got the JDK off Oracle and symlinked that, but that didn't work - just claimed to be compiling indefinitely. 2.0.3, however, is working fine. Should I open a separate 'Please keep linking to version 2.0.3 until later versions work with Android' issue, since this seems to be much the easiest solution to this problem? |
I just downloaded Processing 2.1.1, and when I try to run my Android sketch, I get the following error in the console:
[javac] Unable to locate an executable at "/Applications/Processing.app/Contents/PlugIns/jdk1.7.0_51.jdk/Contents/Home/jre/bin/javac" (-1)
If I open the Processing.app package and navigate to the mentioned folder, I find an executable called
java
but nothing calledjavac
. I tried renamingjava
tojavac
but this just creates more (and different) errors.The text was updated successfully, but these errors were encountered: