ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=52456

             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
        AssignedTo: notifications@ant.apache.org
        ReportedBy: charleybin@gmail.com
    Classification: Unclassified


Environment:
Apache Ant version 1.7.1 compiled on June 27 2008
antenna-bin-1.2.1-beta.jar
OS: Ubuntu 1104 amd64
$locale: zh_CN.GBK


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

2, bash shell environment been sets to support GBK encoding:
LANG=zh_CN.GBK

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
[/home/mic-oem-dev/workspace/code/kjava/mini-baseline/KJAVA_MINI.jar]
[wtkobfuscate] Updating JAD file
/home/mic-oem-dev/workspace/code/kjava/mini-baseline/KJAVA_MINI.jad
[echo] preverify...
[wtkpreverify] Preverifying
/home/mic-oem-dev/workspace/code/kjava/mini-baseline/KJAVA_MINI.jar
[wtkpreverify] Executable:
/home/mic-oem-dev/workspace/sdk/WTK2.5.2/bin/preverify
[wtkpreverify] Arguments : -classpath
/home/mic-oem-dev/workspace/sdk/WTK2.5.2/lib/cldcapi11.jar:/home/mic-oem-dev/workspace/sdk/WTK2.5.2/lib/mmapi.jar:/home/mic-oem-dev/workspace/sdk/WTK2.5.2/lib/jsr75.jar:/home/mic-oem-dev/workspace/sdk/WTK2.5.2/lib/midpapi20.jar:/home/mic-oem-dev/workspace/code/kjava/mini-baseline/lib/nokia-ui.jar:/home/mic-oem-dev/workspace/code/kjava/mini-baseline/lib/wma.jar
-d /home/mic-oem-dev/workspace/code/kjava/mini-baseline/54590625.tmp -target
CLDC1.1
/home/mic-oem-dev/workspace/code/oem/bdmobile/kjava/mini-baseline/KJAVA_MINI.jar
[wtkpreverify] JAR file creation failed with error 32512
[wtkpreverify] The preverified classes if any are in tmp884869193. See jar log
of errors in
/home/mic-oem-dev/workspace/code/kjava/mini-baseline/54590625.tmp/jarlog.txt 
[wtkpreverify] sh: sh: not found

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message