User Tag List

Results 1 to 7 of 7

Thread: Application build failed. "java.io.IOException: CreateProcess error=2"

  1. #1
    No Products Registered

    Join Date
    Jun 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Application build failed. "java.io.IOException: CreateProcess error=2"

    Hi there.
    As I said in the title, I cannot get Clickteam Fusion 2.5 (Steam version) to build any Android applications. I do not know if the bit of text I posted is any help with determining the problem, so here is the whole thing in all its glory:

    ---

    Buildfile: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\build .xml

    -set-mode-check:

    -set-debug-files:

    -check-env:
    [checkenv] Android SDK Tools Revision 24.3.2
    [checkenv] Installed at D:\Program Files (x86)\android-sdk-windows

    -setup:
    [echo] Project Name: RuntimeAndroid
    [gettype] Project Type: Application

    -set-debug-mode:

    -debug-obfuscation-check:

    -pre-build:

    -build-setup:
    [getbuildtools] Using latest Build Tools: 22.0.1
    [echo] Resolving Build Target for RuntimeAndroid...
    [gettarget] Project Target: Android 5.1.1
    [gettarget] API level: 22
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\bin
    [mkdir] Created dir: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\bin\r es
    [mkdir] Created dir: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\bin\r sObj
    [mkdir] Created dir: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\bin\r sLibs
    [mkdir] Created dir: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\gen
    [mkdir] Created dir: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\bin\c lasses
    [mkdir] Created dir: C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\bin\d exedLibs
    [echo] ----------
    [echo] Resolving Dependencies for RuntimeAndroid...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [echo] ----------
    [echo] Building Libraries with 'debug'...
    [subant] No sub-builds to iterate on

    -code-gen:
    [mergemanifest] Merging AndroidManifest files into one.
    [mergemanifest] Manifest merger disabled. Using project manifest only.
    [echo] Handling aidl files...
    [aidl] No AIDL files to compile.
    [echo] ----------
    [echo] Handling RenderScript files...
    [echo] ----------
    [echo] Handling Resources...
    [aapt] Generating resource IDs...

    BUILD FAILED
    D:\Program Files (x86)\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line:
    D:\Program Files (x86)\android-sdk-windows\tools\ant\build.xml:694: Execute failed: java.io.IOException: Cannot run program "C:\Users\XXXX\AppData\Local\Temp\And9C77.tmp\${aa pt}": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at org.apache.tools.ant.taskdefs.launcher.Java13Comma ndLauncher.exec(Java13CommandLauncher.java:58)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execu te.java:428)
    at org.apache.tools.ant.taskdefs.Execute.execute(Exec ute.java:442)
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute( ExecTask.java:628)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(Exe cTask.java:669)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(Exe cTask.java:495)
    at com.android.ant.AaptExecTask.execute(AaptExecTask. java:703)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(S equential.java:68)
    at com.android.ant.IfElseTask.execute(IfElseTask.java :120)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(S equential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execut e(MacroInstance.java:396)
    at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:43 5)
    at org.apache.tools.ant.Target.performTasks(Target.ja va:456)
    at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project .java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Projec t.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher. java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher .java:109)
    Caused by: java.io.IOException: CreateProcess error=2, Das System kann die angegebene Datei nicht finden
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 47 more

    Total time: 3 seconds

    ---

    As you can see, there are some bits of German in there, since that is the native language of my PC. Might that be a reason?

    I've spent hours reading through this forum and trying out different ways to fix it. Since I lack the programming knowledge to determine the problem, I have resorted to trying pretty much everything. Here's what I've done so far:

    - un- and reinstall Clickteam Fusion 2.5
    - un- and reinstall both JDK and Android SDK
    - try out different APIs (14, 18, 22)
    - try out different versions of JDK (32 bit and 64 bit); PC is running on a 64 bit system
    - try out an older verson of JDK and SDK
    - install JDK and SDK on different drives (C: or D
    - check and doublecheck the correct path names in the preferences menu
    - disable anti virus program while building application

    Nothing seems to work. Exe files, on the other hand, are made just fine.
    Frankly, I'm at a loss. I really hope you can help me with this.

    Regards,

    Andrew

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,821
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)
    Under preferences tools what exactly is the path you have set for your JDK

    mine is -- C:\program files (x86)\Java\jkd1.6.0_43

  3. #3
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,309
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    See here: http://community.clickteam.com/threads/92584-Android-build-error-file-not-found

    it does work for me, after I installed the Java 32 bit version, it doesn't work with the 64 bit version

  4. #4
    No Products Registered

    Join Date
    Jun 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks to both of you for your reply

    Jeff: The path name reads D:\Program Files (x86)\Java\jdk1.8.0_45, which I think is correct.
    Should I try to recreate your example with version jdk 1.6? It says on the Java page that version 8 is the one to go for now ...

    Perry:
    I do have the 32 bit version, so that shouldn't be the problem. I'm gonna try the recommendation on the page you posted, next.

  5. #5
    No Products Registered

    Join Date
    Jun 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perry:
    Just tried fiddling with the build file and it worked

    Thank you so much!

  6. #6
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,309
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    no problem

  7. #7
    No Products Registered

    Join Date
    Jun 2015
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had the same problem after my SDK tools got upgraded. I think that upgrade caused a bug in the program. I went back a couple of versions and it worked like a charm

Similar Threads

  1. [solved]Build Error "Unable to resolve project target 'android-18'"
    By Jonas in forum Android Export Module 2.5
    Replies: 0
    Last Post: 30th November 2014, 10:32 PM
  2. "Seek failed on unnamed file" Error, Pleas help.
    By Disthron in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 22nd September 2012, 05:39 AM
  3. [bug] when "end application when not in foreground" is unchecked - ad/link error
    By qenio in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 23rd April 2012, 03:55 PM
  4. "Application failed codesign verification"
    By monkeytherat in forum iOS Export Module Version 2.0
    Replies: 9
    Last Post: 24th September 2011, 09:07 PM
  5. "Unkown Format", "Failed to open document"
    By IndyJones in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd June 2011, 07:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •