Implorer / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

SDK's Launch4J hangs on Windows .exe generation #603

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After enabling Windows EXE generation in my project (as well as Linux), I was 
finding that clean/rebuild was taking forever. 

Finally after several hours, and with the aid of jconsole to find out where the 
hang might be happening, I eventually traced the problem to Launch4J's 
"Validator" class.

This was seemed to be stuck in Java's regular expression classes when executing 
Validator.checkOptions(). 

It turned out that was caused by me adding the following to my "Run" options in 
the SDK. I use Java Logging extensively, and had added this option to get some 
tidier output.

-Djava.util.logging.SimpleFormatter.format='%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS 
%4$s %2$s %5$s%6$s%n'

This gets passed to Launch4 which then has trouble with the regular expressons 
that validates and goes into a mad loop! I am guess some escaping needs to 
happen somewhere.

This happens on latest JME3 SDK on Ubuntu Mint 15 64bit (with both OpenJDK7 and 
Oracle7)

Product Version: jMonkeyEngine SDK 3.0
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Linux version 3.8.0-19-generic running on amd64; UTF-8; en_GB 
(jmonkeyplatform)
User directory: /home/auser/.jmonkeyplatform/3.0
Cache directory: /home/auser/.jmonkeyplatform/3.0/var/cache

Original issue reported on code.google.com by rockfire...@googlemail.com on 11 Nov 2013 at 12:23

GoogleCodeExporter commented 9 years ago
Maybe you could try setting the parameter in code? Theres not much we can do if 
Launch4J hangs..

Original comment by normen667 on 15 Feb 2014 at 11:32