Stencyl 3.4.0 is now out. Get it now!

Cannot build to HTML5 - Logs attached

mattimeatball

  • *
  • Posts: 17
Works when testing in HTML5, but encounter errors when trying to publish.  I've tried reinstalling Java JDK and Android SDK and no luck.  Any help would be appreciated!

Using Stencyl 3.4.0 build 9300 - For what it's worth, when I've tried it in 3.5 the games wouldn't work at all, even in testing.

Thanks!

 


squeeb

  • Posts: 1128
What platform is your target export.. android? Html5? Also html 5 is still beta

mattimeatball

  • *
  • Posts: 17
I'm attempting to export to HTML5 (I'd seen elsewhere on the forum someone suggesting reinstalling Android SDK for this same issue).

Totally get that it's in beta, but my sense is at least a few people have been able to publish to HTML5 successfully. 


yoplalala

  • *
  • Posts: 1412
Code: [Select]
[haxelib]  - Running command: java -Dapple.awt.UIElement=true -jar /Applications/Stencyl/plaf/haxe/lib/lime/lime/templates/bin/compiler.jar --js "Export/html5/bin/2D Tennis.js" --js_output_file /var/folders/8p/r_2lr57s4ds48vgfcj2739r00000gn/T//temp_2972012.js
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/javascript/jscomp/CommandLineRunner : Unsupported major.minor version 51.0
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.lang.ClassLoader.defineClass1(Native Method)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.security.AccessController.doPrivileged(Native Method)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
2017-10-24 13:26:14,979 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
2017-10-24 13:26:14,980 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
2017-10-24 13:26:14,980 INFO  [Thread-49] stencyl.sw.util.StreamGobbler: [haxelib] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
2017-10-24 13:26:14,988 DEBUG [pool-1-thread-3] stencyl.sw.util.Util: Process 'haxelib' exited with code: 1
2017-10-24 13:26:14,989 ERROR [pool-1-thread-3] stencyl.sw.io.write.resource.HXWriter: Failed: Building for HTML5. (Return code: 1)
2017-10-24 13:26:14,990 ERROR [pool-1-thread-3] 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.

Are you able to export to test html5 for a new game ?

mattimeatball

  • *
  • Posts: 17
Good call.  I created a new 'blank' game.  Same deal, I can test HTML5 but cannot publish. 

I've attached the log for the blank game as well. 

thatredallstar

  • Posts: 5
how to I put my logs in because its over 30000 charters


mdotedot

  • *
  • Posts: 1259
Try this line in a terminal window:
Code: [Select]
java -Dapple.awt.UIElement=true -jar /Applications/Stencyl/plaf/haxe/lib/lime/lime/templates/bin/compiler.jar --js "Export/html5/bin/2D Tennis.js" --js_output_file /var/folders/8p/r_2lr57s4ds48vgfcj2739r00000gn/T//temp_2972012.js
Try with Java version 1.7 instead of Java Version: 1.8.0_152


Also, you can create your own export if you are able to test-run.

Create a ZIP archive with all the files in the /Users/Beckett/stencylworks/games-generated/“2D Tennis.js”/Export/html5/bin


In general: try to avoid spaces in names! It might work most of the time but can fail. Just avoid the hassle and remove spaces!

Best regards from
M.E.
Hanging out in the Chat:  http://www.stencyl.com/chat/