ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52456] New: ant 1.7.1 build J2ME project error: JAR file creation failed with error 32512
Date Thu, 12 Jan 2012 05:04:00 GMT

             Bug #: 52456
           Summary: ant 1.7.1 build J2ME project error: JAR file creation
                    failed with error 32512
           Product: Ant
           Version: unspecified
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
    Classification: Unclassified

Apache Ant version 1.7.1 compiled on June 27 2008
OS: Ubuntu 1104 amd64
$locale: zh_CN.GBK

1, There are some GBK constants defined in java source code file.

2, bash shell environment been sets to support GBK encoding:

3, Build from shell command line everything is ok. 
for example, if we run command: ant -buildfile buildkjava.xml deploy
the project can be built successful.

4, If we run the same command from a tomcat servlet, it's must be failed.

the source code is:

String cmd = "ant -buildfile buildkjava.xml deploy"
String[] envp = new String[] {"LANG=zh_CN.GBK"};
Process process = Runtime.getRuntime().exec(cmd, envp);

bellowing is the error logs:

[wtkobfuscate]   Copying resources from program jar
[wtkobfuscate] Updating JAD file
[echo] preverify...
[wtkpreverify] Preverifying
[wtkpreverify] Executable:
[wtkpreverify] Arguments : -classpath
-d /home/mic-oem-dev/workspace/code/kjava/mini-baseline/54590625.tmp -target
[wtkpreverify] JAR file creation failed with error 32512
[wtkpreverify] The preverified classes if any are in tmp884869193. See jar log
of errors in
[wtkpreverify] sh: sh: not found

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message