Java ME 3.0 示例 midlet 中的编译错误

发布于 2024-12-16 15:47:16 字数 355 浏览 7 评论 0原文

j2me sdk 3.0 (http://www.oracle.com/technetwork/java/javame/javamobile/download/overview/index.html) 中有很多示例,

我正在尝试构建示例来了解有关 MIDlet 2d 图形的更多信息。

  AGUISwingSet2 error: package javax.swing does not exist

  BdjGunBunny error: package java.awt does not exist

如何构建它或包含这些包?

There are many example in j2me sdk 3.0 (http://www.oracle.com/technetwork/java/javame/javamobile/download/overview/index.html)

I'm trying to build example to learn more about MIDlet 2d graphics.

  AGUISwingSet2 error: package javax.swing does not exist

  BdjGunBunny error: package java.awt does not exist

How to build it or include those package?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

尸血腥色 2024-12-23 15:47:16

我正在尝试构建示例来了解有关 MIDlet 2d 图形的更多信息。

<块引用>

 AGUISwingSet2 错误:包 javax.swing 不存在

  BdjGunBunny 错误:包 java.awt 不存在

您的错误是期望 AGUI 示例与基于 < a href="http://docs.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/index.html" rel="nofollow">MIDP (JSR 118) API。这是不可能的。

  • 如果您想了解有关 MIDlet 2d 图形的更多信息,请查找其他示例。
  • 如果您想研究示例 AGUISwingSet2 和 BdjGunBunny,请重新配置 CDC 堆栈的 SDK 平台 - 如 在其文档中进行了描述

I'm trying to build example to learn more about MIDlet 2d graphics.

  AGUISwingSet2 error: package javax.swing does not exist

  BdjGunBunny error: package java.awt does not exist

Your mistake is expecting the AGUI examples to work with MIDlets based on MIDP (JSR 118) API. This ain't possible.

  • If you want to learn more about MIDlet 2d graphics then find other examples.
  • If you want to study examples AGUISwingSet2 and BdjGunBunny then recondigure SDK platform for CDC stack - as described in their documentation here
空心↖ 2024-12-23 15:47:16

尝试添加这些包(如果您使用的是 netbeans IDE)。右键单击项目名称>属性>构建>库>资源>添加库。希望它能解决您的问题。

Try to add those package (if you are using netbeans IDE). right click on project name>properties>build>libraries&Resource> Add Library. Hope it will solve your problem.

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