Build failed on Personal Build server


#1

I couldn’t build the apk locally and got an error like (only the end):

...
----------> processing resourcePath:/files/runtime.scm
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.Execution execute
Infos: ____Executing C:\Program Files (x86)\Java\jdk1.7.0_55\jre/bin/java -Dfile.encoding=UTF-8 -mx1848M -cp C:\Users\pm\AppData\Local\Temp\kawa5783885281636829985.jar;C:\Users\pm\AppData\Local\Temp\acra-4.4.05124803701348963540.jar;C:\Users\pm\AppData\Local\Temp\AndroidRuntime869822502242442130.jar;C:\Users\pm\AppData\Local\Temp\commons-io-2.0.11777282929337389675.jar;C:\Users\pm\AppData\Local\Temp\json7729230497013747397.jar;C:\Users\pm\AppData\Local\Temp\android-support-v41626793710144877605.jar;C:\Users\pm\AppData\Local\Temp\appybuilder-billing3-1.0.326747228215490064772.jar;C:\Users\pm\AppData\Local\Temp\android8387900052849649747.jar kawa.repl -f C:\Users\pm\AppData\Local\Temp\runtime3005690102418528977.scm -d C:\Users\pm\AppData\Local\Temp\1519231485150_0.9430929740184879-0\youngandroidproject\..\build\classes -P com.appybuilder.test.chacha. -C C:\Users\pm\AppData\Local\Temp\1519231485150_0.9430929740184879-0\youngandroidproject\..\src\com\appybuilder\test\chacha\Screen1.yail C:\Users\pm\AppData\Local\Temp\1519231485150_0.9430929740184879-0\youngandroidproject\..\src\com\appybuilder\test\chacha\Screen2.yail C:\Users\pm\AppData\Local\Temp\runtime3005690102418528977.scm
Error occurred during initialization of VM
Could not reserve enough space for object heap
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.Compiler generateClasses
Grave: Kawa compile has failed.
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.Compiler generateClasses
Infos: Kawa compile time: 0.094 seconds
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.Compiler generateClasses
Infos: Can't find class file: C:\Users\pm\AppData\Local\Temp\1519231485150_0.9430929740184879-0\youngandroidproject\..\build\classes/com\appybuilder\test\chacha\Screen1.class
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer build
<br>Kawa compile time: 0.094 secondsurred. Program will exit.
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer build
Infos: Build error output: Error: Your build failed due to an error when compiling com\appybuilder\test\chacha\Screen1.

f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer checkMemory
Infos: Build 1 current used memory: 8824848 bytes
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer buildAndCreateZip
Grave: Build 1 Failed: 1 Error: Your build failed due to an error when compiling com\appybuilder\test\chacha\Screen1.

f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer$1 run
Infos: CallbackURL: http://localhost:8888/ode2/receivebuild/z3e21az321r...zzd65c4zd6c54/build/Android
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer checkMemory
Infos: Build 1 current used memory: 8556104 bytes
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer checkMemory
Infos: Build 1 current used memory: 7831728 bytes
f├®vr. 21, 2018 5:44:50 PM com.google.appinventor.buildserver.BuildServer$1 run
Infos: BUILD 1 FINISHED

It looks like a path error (C:\Program Files (x86)\Java\jdk1.7.0_55\jre/bin/java) but I don’t remember I setup Java path for the Appy Builder server.
On this Windows 10 machine, JAVA_HOME = C:\Program Files (x86)\Java\jdk1.7.0_55\
Servers work OK

I have no idea where jre/bin/java comes from.


ApkBuilder failed
#2

The personal edition of AppyBuilder needs Java 8. It looks like you are using 7.


#3

Thanks Peter!
Indeed, server works with Java 7 and I have Java 8 installed too but path was wrong.
Changing JAVA_HOME to Java 1.8 path fixed it.
BTW, I switched from x86 to 64 bits Java and it works fine.


#4

cuales son las rutas correctas ???