Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
333 views
in Technique[技术] by (71.8m points)

blackberry - Convert a .jar file into a .cod file using bb-ant

I'm working on a Blackberry application (JDE 4.6.1) on a Windows system. I need to convert a .jar file in a .cod file using bb-ant-tools. Does anybody know how to do it? I'm using:

<target name="convert">
        <rapc import="source.jar" destdir="${path}in" output="source"  jdehome="${testing.jde}" generatesourcelist="true">
         <src> 
            <fileset file="${testing_path}libmicrolog.jar">
             </fileset>
         </src>
        </rapc>  
</target>

Unfortunately I receive back this error message:

[rapc] C:estsource.jar: error! Duplicate definition for 'net.sfender.AbstarctFileAppender' found in....

which could be the problem?

thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Your target is converting microlog.jar, with source.jar as a reference jar. Is that what you want?

If you want to convert source.jar, include it in the src element, and remove it from import.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...