1

在 Netbeans Platform 应用程序中,我想关闭所有不需要的模块,所以我去Project Properties > Libraries关闭了平台模块组。之后出现了一些关于依赖关系的警告,我在同一个窗口中单击了解决。

之后该应用程序构建得很好,但是当我运行它时,我收到下一个错误:

/Applications/NetBeans/NetBeans 7.1.app/Contents/Resources/NetBeans/harness/suite.xml:498: The following error occurred while executing this line:
/Applications/NetBeans/NetBeans 7.1.app/Contents/Resources/NetBeans/harness/run.xml:193: The application is already running within the test user directory.
You must shut it down before trying to run it again.

我 100% 确定没有其他实例在运行,所以它可能与 IDE 本身冲突。

你知道应该打开什么模块来解决这个问题吗?

4

1 回答 1

1

好的,我终于发现是什么模块搞砸了所有的东西。

它是平台集群中的NetBeans OSGi 集成NetBeans Equinox 集成模块。它们都相互依赖,也依赖于OSGi 规范模块。当它们被添加回来时,应用程序会按预期运行。

于 2012-02-11T15:20:37.787 回答