Launch4j / windres: how to set paths correctly?

后端 未结 5 899
轮回少年
轮回少年 2021-01-14 09:40

I have launch4j configure for my project. I used it back, when i developed on windowsXP, where it worked. Now i need it to build on mac as well:

My build.xml:

<
5条回答
  •  长情又很酷
    2021-01-14 10:04

    I had similar problem with building launch4j in Maven:

    ...
    [INFO] launch4j: (longPathIn.m2Repository)\windres.exe: can't popen `type  (longPathToTemp)\Temp\launch4j8580185391499327059rc': No error
    [ERROR] 
    net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: Exec failed(1): [Ljava.lang.String;@9f1fb5
    at net.sf.launch4j.Builder.build(Builder.java:145)
    ...
    

    it started working normally after cleaning system variable ComSpec:

    was: ComSpec=%SystemRoot%\system32\cmd.exe;c:\Program Files (x86)\NSIS\NSIS.exe
    now: ComSpec=%SystemRoot%\system32\cmd.exe
    

    It seems like NSIS inserted itself there, not me.

提交回复
热议问题