We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am on a macbook running OSX 10.9.1 and running the most updated Processing and Android SDK. I do have API 10 installed and I run into build errors. I am new to Processing and I am just trying some new things out. Below is the compile log:
-set-mode-check:
-set-debug-files:
-check-env:
Android SDK Tools Revision 22.3.0
Installed at /Developer/android-sdk-macosx
-setup:
[echo] Project Name: sketch_140216a
Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
Using latest Build Tools: 19.0.1
[echo] Resolving Build Target for sketch_140216a...
Project Target: Android 2.3.3
API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/bin
[mkdir] Created dir: /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/bin/res
[mkdir] Created dir: /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/bin/rsObj
[mkdir] Created dir: /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/bin/rsLibs
[mkdir] Created dir: /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/gen
[mkdir] Created dir: /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/bin/classes
[mkdir] Created dir: /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for sketch_140216a...
Library dependencies:
No Libraries
------------------
API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 3 source files to /var/folders/fg/bxnl8dz12fg5ymbyn6p8zwvw0000gn/T/android6012979728180377406sketch/bin/classes
[javac] Unable to locate an executable at "/Developer/Processing.app/Contents/PlugIns/jdk1.7.0_51.jdk/Contents/Home/jre/bin/javac" (-1)
[javac] Unable to locate an executable at "/Developer/Processing.app/Contents/PlugIns/jdk1.7.0_51.jdk/Contents/Home/jre/bin/javac" (-1)
BUILD FAILED
/Developer/android-sdk-macosx/tools/ant/build.xml:720: The following error occurred while executing this line:
/Developer/android-sdk-macosx/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 2 seconds
Here is the code I am trying to run:
PFont f;
void setup()
{
size(displayWidth, displayHeight);
f = createFont("Arial",16,true);
}
void draw()
{
background(255);
rss();
}
void rss()
{
textFont(f,16);
fill(0);
String url = "http://www.newsday.com/cmlink/1.1251990";
XML rss = loadXML(url);
XML[] titleXMLElements = rss.getChildren("channel/item/title");
for (int i = 0; i < titleXMLElements.length;i++)
{
String title = titleXMLElements[i].getContent();
text(i + ": " + title, 10, i*16+20);
}
}
Answers
ANT can't find the Java compiler (javac). It is looking at the following path:
Is this path correct? If not, you'll have to change something... I'm not entirely sure what if you're on a Mac...
As state above I am on a macbook running OSX 10.9.1. That is part of the Processing app itself and when I looking inside the apps contents javac isnt there but java is...what should I do? I downloaded the most recent Processing from the website
What version of Processing are you running? If you're using 2.1.1 (or 2.1), try switching back to 2.0.3 - this fix has worked for some people. I don't know what is causing the problem, but I don't have a Mac...
Thank you....2.0.3 worked
Solution: make a simbolic link into Processing folder to javac binary: ln -s /Library/Java/Home/bin/javac /Applications/Processing 2.app/Contents/PlugIns/jdk1.7.0_51.jdk/Contents/Home/jre/bin
In Linux, I downright delete Processing's "/java" subfolder to force it to use system's Java! :))
Only in Windows I'd have to set a hardlink junction point! ~X(
Hello everybody
For me this problem was SOLVED by putting up the "javac" path i.e. bin location of JAVA JDK installation location in the environment variables' PATH variable stream.
I am using Windows 7 64bit, Processing 2.1.1 and Java 1.7.0_25.
Since it is the same query try referring my reply here http://forum.processing.org/two/discussion/750/error-from-inside-the-android-tools-check-the-console-with-processing-2-1#Item_33
Shadab K
Weave and Connect