如何使用 eclipse 在 J2ME 中使用充气城堡 API?
我正在尝试使用 Eclipse 导入并使用 bouncy castle API 来加密和解密 J2ME 中的 MP3 文件。
即使我导入 cldc_sources.zip & CLDC_crypto.zip 我收到 NoClassDeffoundError。有人成功导入和使用这个 API 吗?您能给我在 Eclipse IDE 中从头开始执行此操作的步骤吗?
提前致谢。
I am trying to import and use the bouncy castle API to encrypt and decrypt a MP3 file in J2ME using Eclipse.
Even though I import cldc_sources.zip & CLDC_crypto.zip I'm getting NoClassDeffoundError. Has anyone had success with importing and using this API? Could you give me the steps to do that from the beginning in the Eclipse IDE?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现在使用 J2ME 时将 BouncyCastle 源代码解压到我的源代码树中更简单、更容易。您可以只包含您想要的类,也可以将其留给 Proguard 来优化它们。
I found it simpler and easier to just unpack the BouncyCastle source code into my source tree when working with J2ME. You can either include just the classes you want or leave it to Proguard to optimize them out.
这里有一篇关于这个主题的看起来很有用的博客文章:http://tirl.org/ blogs/media-lab-blog/46/
可能值得一试。
There's a useful looking blog post about exactly this topic here: http://tirl.org/blogs/media-lab-blog/46/
Might be worth a try.
我遇到了这个问题,并通过诺基亚开发人员上的这个线程解决了它: http://www.developer.nokia.com/Community/Discussion/showthread.php?236244-moved-Series-40-Development-using-Eclipse -Pulsar-and-BouncyCastle 它表示您必须通过重命名来更改存档的扩展名:.jar 而不是 .zip
I got this problem and I solved it thanks to this thread on Nokia Developer : http://www.developer.nokia.com/Community/Discussion/showthread.php?236244-moved-Series-40-Development-using-Eclipse-Pulsar-and-BouncyCastle It says that you have to change the extension of the archive by renaming it : .jar instead of .zip