创建 Java 移动应用程序项目时出现问题

发布于 2024-07-26 03:28:07 字数 914 浏览 4 评论 0原文

我已经安装了包含 Java ME 的 Netbeans 6.7 IDE,但无法从 Java ME 类别创建移动应用程序项目。 当我选择项目类型时,向导会在“查找功能”处停止,并显示消息:

并非所有请求的模块都可以启用: [StandardModule:org.netbeans.modules.mobility.end2end.kig jarFile:C:\Program Files\NetBeans 6.7\mobility8\modules\org-netbeans-modules-mobility-end2end-kit.jar。

我正在尝试在 Vista Home Premium 上运行它。 我尝试以管理员身份运行 IDE,但没有成功。

我不知道下一步该去哪里,因为我似乎找不到有关此问题的任何信息。 即使您没有解决方案,了解此错误消息也会有所帮助。


到目前为止,我无法通过 Netbeans IDE 安装运行该项目。 我暂时安装了 Java ME SDK,其中包括用于移动开发的 Netbeans IDE 的精简版本。

我最初在 Vista 上启动 SDK 时也遇到了一些问题。 IDE 报告无法连接到本地主机上的设备管理器。 经过一番搜索后,我发现了这个链接:Java ME SDK启动问题这建议将主机文件 localhost 条目从 IPv6 更改为 IPv4。 该修复工作完美,我现在可以在模拟器中编译和运行代码。

这不是一个最佳解决方案,因为 SDK 不包含视觉设计工具,但我可以同时启动一个基本项目。

我已经放弃了 6.7 版本,转而找到并安装了 6.5.1。 以前的版本运行得很好,似乎可以满足我需要的一切。

I have installed the Netbeans 6.7 IDE with Java ME included, but cannot create a Mobile Application project from the Java ME category. When I select the project type the wizard stops at "Finding Feature" with the message:

Not all requested modules can be enabled:
[StandardModule:org.netbeans.modules.mobility.end2end.kig jarFile:C:\Program Files\NetBeans 6.7\mobility8\modules\org-netbeans-modules-mobility-end2end-kit.jar.

I am attempting to run this on Vista Home Premium. I have tried to run the IDE as Administrator with no luck.

I am at a loss for where to go next as I cannot seem to find any information regarding this issue. Even if you don't have the solution any insight into this error message would be helpful.


I am unable so far to get the project running via the Netbeans IDE install. I have, for the time being, installed the Java ME SDK which includes a very stripped down version of the Netbeans IDE for mobile development.

I originally had some issues starting the SDK as well on Vista. The IDE reported that it could not connect to the device manager on localhost. After some searching I found this link: Java ME SDK Startup Problem which suggests changing the hosts file localhost entry from IPv6 to IPv4. The fix worked perfectly and I can now compile and run code in the emulator.

This is not an optimal solution as the SDK does not include the visual design tools, however I am able to get a basic project going in the mean time.

I have given up on the 6.7 version and have instead located and installed 6.5.1. This previous version has been working just fine and seems to do everything I need.

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

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

发布评论

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

评论(4

思慕 2024-08-02 03:28:07

我今天在安装 NB 6.8 beta 时遇到了完全相同的错误。 为了解决这个问题,我们需要安装两个插件:

  1. Java Web 应用程序(如上面 Ali 提到的)和
  2. Sun Java System Web Server 7.0

请注意,这两个插件属于“Java Web 和 EE”类别,因此我们需要混淆安装 Glassfish 应用服务器。 但是我们需要这两个插件,因为在模拟器中使用断点进行调试需要它们。 当我们进行基于断点的调试时,Netbeans 会运行一个 Web 服务器。

另请注意,Java Web 应用程序需要 SOAP Web 服务和 JavaScript 调试器插件才能运行,因此当您尝试安装它时也会安装这些插件。

I ran into the exact same error today while installing NB 6.8 beta. To resolve it we need to install two plugins:

  1. Java Web Applications (as mentioned by Ali above) and
  2. Sun Java System Web Server 7.0

Note that these two are part of the Category called "Java Web and EE" hence the confusion that we need to install Glassfish App Server. But we need these two plugins because they are required for debugging using breakpoints in emulator. Netbeans runs a web server when we do breakpoint based debugging.

Also note that the Java Web applications needs SOAP Web Services and JavaScript Debugger plugins to run and so these plugins are also installed when you try to install it.

悲欢浪云 2024-08-02 03:28:07

您还需要安装“Java Web 应用程序”插件。

工具->插件->可用插件

You also need to install "Java Web Applications" plugin.

Tools->Plugins->Available Plugins

吹泡泡o 2024-08-02 03:28:07

如果该模块存在,您应该尝试解压缩它以检查其内容是否有意义。

您还应该能够从 Netbeans 源重建它。

您还可以尝试通过使用另一个 IDE(可能是您可以找到的没有问题的最新版本的 Netbeans)从源调试 Netbeans 内部的模块加载器来找出发生这种情况的原因。

如果模块丢失,您可能需要从以前版本的 Netbeans 安装中获取丢失的 jar 文件,看看它是否兼容。

6.5.1 没有缺少任何模块。

早在 5.5 版本中,移动模块必须与主 IDE 分开下载和安装。

If the module is present, you should try unzipping it to check its content makes sense.

You should also be able to rebuild it from Netbeans sources.

You can also try to figure out why this happens by debugging the module loader inside Netbeans from its sources, using another IDE, presumably the latest version of Netbeans you can find without the issue.

If the module is missing, you might want to get the missing jar file from an installation of a previous version of Netbeans, see if it is compatible.

6.5.1 isn't missing any module.

back in version 5.5, the mobility module had to be downloaded and installed separately from the main IDE.

挽清梦 2024-08-02 03:28:07

如果您想考虑使用 Eclipse 来开发您的 J2ME 应用程序...我前段时间写过一篇与此相关的文章:此处

If you want to consider using Eclipse for developing your J2ME app...I've written a post related to that some time ago: here.

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