Java构建:执行manifest / build / null2120978844无效

时间:2011-07-12 01:04:20

标签: java manifest

我过去曾多次建造这个项目。突然间它开始这样做了:

init:
deps-clean:
Updating property file: /home/adam/code/HeimdallOneClick/build/built-clean.properties
Deleting directory /home/adam/code/HeimdallOneClick/build
clean:
init:
deps-jar:
Created dir: /home/adam/code/HeimdallOneClick/build
Updating property file: /home/adam/code/HeimdallOneClick/build/built-jar.properties
Created dir: /home/adam/code/HeimdallOneClick/build/classes
Created dir: /home/adam/code/HeimdallOneClick/build/empty
Compiling 14 source files to /home/adam/code/HeimdallOneClick/build/classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 51 files to /home/adam/code/HeimdallOneClick/build/classes
compile:
Created dir: /home/adam/code/HeimdallOneClick/dist
Copying 1 file to /home/adam/code/HeimdallOneClick/build
/home/adam/code/HeimdallOneClick/nbproject/build-impl.xml:676: Existing manifest /home/adam/code/HeimdallOneClick/build/null2120978844 is invalid
BUILD FAILED (total time: 4 seconds)

我不知道如何解决这个问题。清单很长,但这是它失败的部分。

<target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
    <manifest file="${tmp.manifest.file}" mode="update">
        <attribute name="Main-Class" value="${main.class}"/>
    </manifest>
</target>

如何排查故障?有没有办法重建清单?

2 个答案:

答案 0 :(得分:1)

找到答案

我去看了/ null文件..这是我的manifest.mf文件......

adam@Adam-Desktop:~/code/HeimdallOneClick/build$ cat ./null1074768958 
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
<requestedExecutionLevel
level="requireAdministrator"
uiAccess="true|false"/>

我已经在几天前放了那条线,之前我才意识到在Windows中获得管理员访问需要多少钱,我想它在我提交到SVN服务器之前没有拿起它......突然间它开始失败了出。

删除了requestedexecutionlevel信息并且工作正常。

答案 1 :(得分:0)

将您的SplashScreen放在清单的第一行,如:

SplashScreen-Image: "Here the path of your Image"
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build