I have a JAR File,i want to know how to convert the JAR file to COD file.
<target name = "build-MyLib" depends="clean">
<rapc destdir="release\5.0" output="Lib">
<src>
<fileset dir=".">
<include name="lib/Lib.jar" />
</fileset>
</src>
</rapc>
</target>
Error i got was
[rapc] java.util.zip.ZipException: duplicate entry: Lib-1.cod
[rapc] at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source)
[rapc] at java.util.jar.JarOutputStream.putNextEntry(Unknown Source)
[rapc] at sun.tools.jar.Main.addFile(Unknown Source)
[rapc] at sun.tools.jar.Main.create(Unknown Source)
[rapc] at sun.tools.jar.Main.run(Unknown Source)
[rapc] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rapc] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[rapc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[rapc] at java.lang.reflect.Method.invoke(Unknown Source)
[rapc] at net.rim.tools.compiler.c.e.if(Unknown Source)
[rapc] at net.rim.tools.compiler.c.e.a(Unknown Source)
[rapc] at net.rim.tools.compiler.Compiler.a(Unknown Source)
[rapc] at net.rim.tools.compiler.Compiler.a(Unknown Source)
[rapc] at net.rim.tools.compiler.Compiler.compile(Unknown Source)
[rapc] at net.rim.tools.compiler.Compiler.main(Unknown Source)
[rapc] I/O Error: jar command failed: jar -cfm E:\RakeshBBWorkspace\Helios3.6WorkSpace\Code\release\5.0\Lib.jar C:\DOCUME~1\rakesh\LOCALS ...
BUILD FAILED E:\RakeshBBWorkspace\Helios3.6WorkSpace\Code\build.xml:15: Java returned: -1
I tried using this,it shows I/o error.How can it be done?
Regards
Rakesh Shankar.P