使用 bb-ant 将 .jar 文件转换为 .cod 文件 [英] Convert a .jar file into a .cod file using bb-ant

查看:25
本文介绍了使用 bb-ant 将 .jar 文件转换为 .cod 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Windows 系统上开发 Blackberry 应用程序 (JDE 4.6.1).我需要使用 bb-ant-tools 将 .jar 文件转换为 .cod 文件.有人知道怎么做吗?我正在使用:

<块引用>

<rapc import="source.jar" destdir="${path}\bin\" output="source" jdehome="${testing.jde}" generatesourcelist="true"><src><fileset file="${testing_path}\lib\microlog.jar"></文件集></src></rapc></目标>

很遗憾,我收到了这条错误消息:

<块引用>

[rapc] C:\test\source.jar:错误!'net.sfender.AbstarctFileAppender' 的重复定义在...中找到.

这可能是什么问题?

谢谢

解决方案

您的目标是转换 microlog.jar,以 source.jar 作为参考 jar.这就是你想要的吗?

如果要转换 source.jar,请将其包含在 src 元素中,并从导入中删除.

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}\bin\" output="source"  jdehome="${testing.jde}" generatesourcelist="true">
         <src> 
            <fileset file="${testing_path}\lib\microlog.jar">
             </fileset>
         </src>
        </rapc>  
</target>

Unfortunately I receive back this error message:

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

which could be the problem?

thanks

解决方案

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.

这篇关于使用 bb-ant 将 .jar 文件转换为 .cod 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆