J2ME 项目中未检测到预处理器块 (Netbeans 6.9.1)
我在全新安装 NetBeans 6.9.1 时遇到问题。预处理器块被检测为常规注释,不会以绿色突出显示,并根据我选择的配置和功能自动更新。
我已经安装了: NetBeans 6.9.1 Java ME 包(移动插件) 黑莓插件(能够添加黑莓jde平台)
我创建了一个移动应用程序项目。
问题是,当我使用我一直使用的预处理器语法时,它没有被检测到。 //#if 和 //#endif 均被检测为常规注释。
我已在项目属性下的“常规”选项卡中选中“使用预处理器”,但没有用...
我该如何解决此问题?这让我发疯,因为我有一个一年前使用 netbeans 6.5 创建的项目,到处都有预处理器块,但它们没有被检测到,
谢谢
I have a problem with my brand new installation of NetBeans 6.9.1. The preprocessor blocks are detected as regular comments and are not highlighted in green color, and automatically updated depending on the configuration and abilities I select.
I have installed:
NetBeans 6.9.1
Java ME package (mobility plugin)
Blackberry plugin (to be able to add blackberry jde platforms)
I have created a Mobile Application project.
The problem is that when I use the preprocessor syntax I have always been using it is not detected.
//#if and //#endif are all detected as regular comments.
I have checked "Use preprocessor" in the General tab under project properties, but no use...
How can I fix this? It is driving me crazy as I have a project I created a year ago with netbeans 6.5, with preprocessor blocks all over the place, and they are not detected
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,问题解决了。
当您安装 Netbeans 并启用“按需功能”复选框时,您就告诉 netbeans 您安装的模块可以按需启用。因此您稍后必须手动单击“激活”Java ME 模块。这似乎会带来问题,无法激活您需要的一切。
我重新安装了 Netbeans,取消选中“按需功能”,因此默认情况下会激活 JavaME 模块,而不是手动激活。现在预处理器块已被检测和解析。
该死的网豆...
Ok, problem solved.
When you install Netbeans enabling the checkbox "Features on demand", you tell netbeans that the modules you install can be enable on demand. So you have later to manually click "Activate" the Java ME module. This seems to give problems not activating everything you need.
I reinstalled Netbeans unchecking "Features on demand" so JavaME module is activated by default and not manually. Now preprocessor blocks are detected and parsed.
Damn Netbeans...