Bug Issue: [Building for Android] Build system falls over if path to Java SDK contains spac

Pages: 1

Sock Puppet

  • Junior Stencyler
April 22, 2018, 02:32:08 pm
Stencyl told me to upload my logs to the forums, so here I am.

It seems that it can't handle the fact that I installed JDK to a path containing "Program Files":

2018-04-22 22:16:07,880 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe]       [dex] Pre-Dexing D:\Desktop\dev\stencyl\stencylworks\games-generated\SSCv1\Export\android\bin\deps\native\bin\classes.jar -> classes-badeff25d9982022b22f0a79bce7b618.jar
2018-04-22 22:16:08,152 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe]        [dx] '"D:\Program"' is not recognized as an internal or external command,
2018-04-22 22:16:08,152 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe]        [dx] operable program or batch file.
2018-04-22 22:16:08,152 ERROR [Thread-13] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.
2018-04-22 22:16:08,230 DEBUG [pool-1-thread-2] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1

As you can no doubt guess, I was attempting to Test Game on Android for the first time.

I also encountered some problems with the JDK being unrecognised:
1. Stencyl was unable to recognise JDK 9.0.1, even when pointed to the correct folder.
2. So I installed JDK 8u172 as well. Stencyl was unable to locate it, but when I pointed it to the install folder, it was able to proceed.
The location I installed the JDK and JRE to was "D:\Program Files\Java", which is almost certainly why the build system tried to run "D:\Program". A command line in a batch file somewhere needs an argument to be quoted.
« Last Edit: April 22, 2018, 02:36:30 pm by Sock Puppet »

New attachment added by Sock Puppet - April 22, 2018, 02:36:13 pm


  • Master Stencyler
  • *
January 18, 2019, 01:13:03 pm
In Stencyl 4.0 you can set the JDK/NDK/SDK paths in preferences, and one of my own paths has a space so this likely is not a problem any more, but post here again if it is.
  • Status changed from New to Closed

Pages: 1


  • Reported
    April 22, 2018, 02:32:08 pm
  • Updated
    January 18, 2019, 01:13:03 pm

  • View Status
  • Type
  • Status
  • Priority
  • Version
    3.4.0 beta4
  • Fixed in
  • Assigned to
  • Category
    Compiling/Testing Games



* log-2018-04-22.zip (66.76 kB - downloaded 27 times.)