如何使用 eclipse 在 J2ME 中使用充气城堡 API?

发布于 2024-10-17 13:44:13 字数 230 浏览 5 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心凉 2024-10-24 13:44:13

我发现在使用 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.

泪痕残 2024-10-24 13:44:13

这里有一篇关于这个主题的看起来很有用的博客文章: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.

蓝色星空 2024-10-24 13:44:13

我遇到了这个问题,并通过诺基亚开发人员上的这个线程解决了它: 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文