Netbeans 8.0启动时出错

时间:2014-11-28 14:30:34

标签: python macos netbeans netbeans-plugins

我最近尝试安装以下所述的NetBeans插件:https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_8

然而,当我现在尝试启动NetBeans时,我得到一个可怕的错误,就像这样:

Warning - could not install some modules: Java Source Queries - None of the modules providing the capability org.netbeans.modules.java.source.queries.spi.QueriesController could be installed. Debugger Core API - The module named org.openide.filesystems.compat8 was needed and not found. Resource Bundles - The module named org.openide.filesystems.compat8 was needed and not found. Quick Search API - The module named org.openide.filesystems.compat8 was needed and not found. Quick Search API - The module named org.netbeans.api.progress.compat8 was needed and not found. XML Core - The module named org.netbeans.api.xml.ui/1 was needed and not found. XML Core - The module named org.openide.filesystems.compat8 was needed and not found. XML Multiview Editor - The module named org.openide.filesystems.compat8 was needed and not found. Common Palette - The module named org.openide.filesystems.compat8 was needed and not found. Templates - The module named org.openide.filesystems.compat8 was needed and not found. Settings API - The module named org.openide.filesystems.compat8 was needed and not found. Auto Update Services - The module named org.openide.filesystems.compat8 was needed and not found. Auto Update Services - The module named org.netbeans.api.progress.compat8 was needed and not found. REST Application Platform Sample - The module named org.openide.filesystems.compat8 was needed and not found. .manifest file Editor Support - The module named org.openide.filesystems.compat8 was needed and not found. .diff File Editor Support - The module named org.openide.filesystems.compat8 was needed and not found. Java Support APIs - The module named org.openide.filesystems.compat8 was needed and not found. Java Platform - The module named org.openide.filesystems.compat8 was needed and not found. User Utilities - The module named org.openide.filesystems.compat8 was needed and not found. js-test-driver Wrapper - The module named org.openide.filesystems.compat8 was needed and not found. Editor Settings - None of the modules providing the capability org.netbeans.api.editor.settings.implementation could be installed. Editor Library 2 - None of the modules providing the capability org.netbeans.modules.editor.actions could be installed. HTTP Server - The module named org.openide.filesystems.compat8 was needed and not found. HTTP Server-Side Monitor - None of the modules providing the capability org.openide.util.HttpServer$Impl could be installed. HTTP Server-Side Monitor - The module named org.openide.filesystems.compat8 was needed and not found.

继续页面,页面和页面。

我在OS X上运行它。

我删除了目录/Users/<MyUser>/Library/Application Support/NetBeans/Users/<MyUser>/Library/Caches/NetBeans,正如我在几个地方看到的那样,但我仍然收到同样的错误。

这完全使我瘫痪,阻止我做任何工作,我不知道发生了什么或如何解决它。

任何帮助都将受到大力赞赏。

2 个答案:

答案 0 :(得分:1)

遇到同样的僵局,我在netbeans.org和其他网站上下搜索,提供了我的日志错误https://netbeans.org/bugzilla/show_bug.cgi?id=248986https://netbeans.org/bugzilla/show_bug.cgi?id=248291#c5

我详尽地搜索了esp。我的%appdata%/ Netbeans中的jar和xml文件,按最新修改时间排序, 并找到如下文件:

C:\用户\主\应用程序数据\漫游\的NetBeans \ 8.0 \模块 ORG-netbeans的模块-JIRA-rest.jar ORG-netbeans的模块-JIRA-xmlrpc.jar ORG-netbeans的模块-scanondemand.jar 等

但删除它们,或者使用以前的版本将它们交换出去并没有帮助。

看到没有真正的解决方案甚至回滚失败的更新,至少让我的Netbeans再次启动,我在其他地方安装了夜间版本http://bits.netbeans.org/download/trunk/nightly/latest/进行比较(在虚拟机上,我的&#34;备用& #34; PC)。

继续将全新安装与我破损的安装进行比较。 我的损坏的%appdata%没有变化似乎允许NB启动。

最后,我比较了系统范围的安装文件夹,发现在我的破坏副本中,不仅许多.jar文件的大小不同,而且还有一些文件完全丢失,包括这一点在我得到的启动错误中广泛存在:

C:\ PROGRAMFILES \的NetBeans \平台\芯\ ORG-openide-文件系统-compat8.jar

这是最强烈的暗示,很容易成为&#34;修复&#34; ....

好像永远不允许https://forums.netbeans.org/posting.php?mode=quote&p=79922中的某些来源进入更新中心。 (http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz在我的情况下....虽然依赖链完全不清楚。)

最终,我将整个C:\ ProgramFiles \ NetBeans \文件夹从全新安装覆盖到损坏的文件夹,并成功启动。

需要一些更新,然后再重新启动。 我的大多数设置仍然存在,黑暗主题,最近的文件列表等。 除了Ruby on Rails插件,它仍然被禁用,我仍在尝试重新添加和启用它,因为它甚至阻止了我的ROR项目的开放。

总而言之,可怕的部分解决方法可能相当于使用开发版重新安装Netbeans(以前我在8.0.2上)。

答案 1 :(得分:-1)

请注意,您不应将开发插件(如Python或Scan-on-Demand)安装到生产安装中。这样做很可能会破坏你的安装,你会很难过。

如果要使用开发插件,请使用NetBeans的开发分发 IDE bits.netbeans.org/download/trunk/nightly/latest /

目前是专为IDE 8.0.2制作的 Python插件;有关这方面的更多信息,请访问Oracle的Geertjan博客:https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_81

如果您有兴趣开发或测试新的Python插件,加入NetBeans Python项目,请https://netbeans.org/projects/python/pages/Home