Sketch not running :( (Error running javac.exe compiler)

edited July 2014 in Android Mode

Hello all.

I'm recently trying to run processing in android mode.. I followed this thread and was able to successfully put processing to Android mode. Then I went with a very simple example just to check if it shows up. e.g. sketch:

/**
 * Random. 
 * 
 * Random numbers create the basis of this image. 
 * Each time the program is loaded the result is different. 
*/
 void setup(){
size(200, 200);
 }

 void draw(){
smooth();
background(0);
strokeWeight(10);

for(int i = 0; i < width; i++) {
  float r = random(255);
  float x = random(0, width);
  stroke(r, 100);
  line(i, 0, x, height);
}
 }

When I run this, I got the following error:

"Error from inside the Android tools, check the console "
 Debug window says:

-set-mode-check:

-set-debug-files:

-check-env:
Android SDK Tools Revision 23.0.2
Installed at C:\Users\saurav datta\AppData\Local\Android\android-sdk

-setup:
     [echo] Project Name: Random
Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for Random...
Project Target:   Android 2.3.3
API level:        10
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\bin
    [mkdir] Created dir: C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\bin\res
    [mkdir] Created dir: C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\bin\rsObj
    [mkdir] Created dir: C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\bin\rsLibs
    [mkdir] Created dir: C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\gen
    [mkdir] Created dir: C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\bin\classes
    [mkdir] Created dir: C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for Random...
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 C:\Users\SAURAV~1\AppData\Local\Temp\android965288119214272428sketch\bin\classes

BUILD FAILED
C:\Users\saurav datta\AppData\Local\Android\android-sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\Users\saurav datta\AppData\Local\Android\android-sdk\tools\ant\build.xml:734: Error running javac.exe compiler

Total time: 0 seconds

Now I've no idea about android what so ever but I heard those who develop for android have an emulator installed and they run it there. I'm confused if that's required in case of running it from processing, whether it's automatically installed while I installed SDK and relative packages as mentioned in this thread:

I've windows 8.1 64 bit
Processing 2.2.1
java version 7 update 55. 
Tagged:

Answers

Sign In or Register to comment.