Java NetBeans 无法安装某些模块
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18545208/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
NetBeans could not install some modules
提问by ARIF MAHMUD RANA
I am using NetBeans 7.4 DEVELOPMENT VERSION 2, All packages.
我正在使用 NetBeans 7.4 开发版本 2,所有包。
First I used NetBeans 7.2, All packages. Then I was notified that I have updates. So I updated it to 7.4 DEVELOPMENT VERSION.
首先我使用 NetBeans 7.2,所有包。然后我被通知我有更新。所以我将其更新为 7.4 开发版。
Then again I was notified that I have updates, and I started updating. But by mistake, I clicked a php file while NetBeans was updating, and an error occurred that caused the update to fail. I can't remember the error message.
然后我又被通知我有更新,我开始更新。但是我在 NetBeans 更新时错误地单击了一个 php 文件,并且发生了一个错误,导致更新失败。我不记得错误信息。
**Now my problem is that when I start NetBeans, I get the following error message : **
**现在我的问题是,当我启动 NetBeans 时,我收到以下错误消息:**
Warning - could not install some modules: org.eclipse.core.runtime.compatibility.auth - org.netbeans.InvalidException: Netigso: C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\org-eclipse-core-runtime-compatibility-auth.jar: Cannot start org.eclipse.core.runtime.compatibility.auth state remains INSTALLED after start() org.eclipse.equinox.registry - org.netbeans.InvalidException: Netigso: C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\org-eclipse-equinox-registry.jar: Cannot start org.eclipse.equinox.registry state remains INSTALLED after start() org.eclipse.core.contenttype - org.netbeans.InvalidException: Netigso: C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\org-eclipse-core-contenttype.jar: Cannot start org.eclipse.core.contenttype state remains INSTALLED after start() org.eclipse.equinox.app - org.netbeans.InvalidException: Netigso: C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\org-eclipse-equinox-app.jar: Cannot start org.eclipse.equinox.app state remains INSTALLED after start() org.eclipse.core.runtime - org.netbeans.InvalidException: Netigso: C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\org-eclipse-core-runtime.jar: Cannot start org.eclipse.core.runtime state remains INSTALLED after start() org.eclipse.equinox.security - org.netbeans.InvalidException: Netigso: C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\org-eclipse-equinox-security.jar: Cannot start org.eclipse.equinox.security state remains INSTALLED after start() org.eclipse.core.net - org.netbeans.InvalidException: Netigso: C:\Program Files\NetBeans 7.3 Beta 2\ide\modules\org-eclipse-core-net.jar: Cannot start org.eclipse.core.net state remains INSTALLED after start() org.eclipse.mylyn.commons.core - org.netbeans.InvalidException: Netigso: C:\Users\Arif Rana\AppData\Roaming\NetBeans.3beta2\modules\org-eclipse-mylyn-commons-core.jar: Cannot start org.eclipse.mylyn.commons.core state remains INSTALLED after start() org.eclipse.mylyn.commons.net - org.netbeans.InvalidException: Netigso: C:\Users\Arif Rana\AppData\Roaming\NetBeans.3beta2\modules\org-eclipse-mylyn-commons-net.jar: Cannot start org.eclipse.mylyn.commons.net state remains INSTALLED after start() org.eclipse.mylyn.commons.xmlrpc - org.netbeans.InvalidException: Netigso: C:\Users\Arif Rana\AppData\Roaming\NetBeans.3beta2\modules\org-eclipse-mylyn-commons-xmlrpc.jar: Cannot start org.eclipse.mylyn.commons.xmlrpc state remains INSTALLED after start() org.eclipse.mylyn.commons.repositories.core - org.netbeans.InvalidException: Netigso: C:\Users\Arif Rana\AppData\Roaming\NetBeans.3beta2\modules\org-eclipse-mylyn-commons-repositories-core.jar: Cannot start org.eclipse.mylyn.commons.repositories.core state remains INSTALLED after start() org.eclipse.mylyn.tasks.core - org.netbeans.InvalidException: Netigso: C:\Users\Arif Rana\AppData\Roaming\NetBeans.3beta2\modules\org-eclipse-mylyn-tasks-core.jar: Cannot start org.eclipse.mylyn.tasks.core state remains INSTALLED after start() org.eclipse.mylyn.bugzilla.core - org.netbeans.InvalidException: Netigso: C:\Users\Arif Rana\AppData\Roaming\NetBeans.3beta2\modules\org-eclipse-mylyn-bugzilla-core.jar: Cannot start org.eclipse.mylyn.bugzilla.core state remains INSTALLED after start() org.eclipse.mylyn.wikitext.core - org.netbeans.InvalidException: Netigso: C:\Users\Arif Rana\AppData\Roaming\NetBeans.3beta2\modules\org-eclipse-mylyn-wikitext-core.jar: Cannot start org.eclipse.mylyn.wikitext.core state remains INSTALLED after start()
Now if I click "Disable Modules and Continue", the plugins are disabled. Then if I try to activate the plugins, I get another error message. The following image is the error message while activating "Developing Netbeans" plugin.
现在,如果我单击“禁用模块并继续”,插件将被禁用。然后,如果我尝试激活插件,则会收到另一条错误消息。下图是激活“Developing Netbeans”插件时的错误消息。
I don't want to uninstall NetBeans from my pc as I am very much used to with it, and I have custom settings.
我不想从我的电脑上卸载 NetBeans,因为我非常习惯它,而且我有自定义设置。
So I need help on how to repair my installed copy of NetBeans.
因此,我需要有关如何修复已安装的 NetBeans 副本的帮助。
回答by Vasile Goian
In the modules directory (in userdir http://wiki.netbeans.org/FaqWhatIsUserdir), locate the files that appear in that error (like org.eclipse.core.runtime.compatibility.auth
) and delete or move them in another directory.
在模块目录中(在 userdir http://wiki.netbeans.org/FaqWhatIsUserdir 中),找到出现在该错误中的文件(如org.eclipse.core.runtime.compatibility.auth
)并将它们删除或移动到另一个目录中。
回答by Boris Davidov
I have the same issue. If you will get version 7.4 and install it on a clean PC (or remove all netbeans data/config folders) and disable the check for updates, during installation the installation will proceed without errors and netbeans runs. In the case of the first update, the issue comes back.
我有同样的问题。如果您将获得 7.4 版并将其安装在干净的 PC 上(或删除所有 netbeans 数据/配置文件夹)并禁用更新检查,则在安装过程中,安装将继续进行而不会出现错误并且 netbeans 会运行。在第一次更新的情况下,问题又回来了。
回答by IsmailJallouli
It's very simple :
这很简单:
1 - Try to find this file /home/yourname/.cache/netbeans
1 - 尝试找到这个文件 /home/yourname/.cache/netbeans
2 - And clear all files
2 - 并清除所有文件
回答by Shashank Gaurav
1.Uninstall Net Beans
1.卸载 Net Beans
2.Just Delete everything from:
2.删除所有内容:
C:\Users\your_name\AppData\Local\NetBeans\Cache.1\
C:\Users\your_name\AppData\Roaming\NetBeans.1\
I am using 8.1 version.
3.After deleting just restart your machine.
3.删除后只需重新启动您的机器。
4.Re-Install
4.重新安装
I did the following steps and it worked :)
我做了以下步骤,它奏效了:)
回答by stanley
I had the same issue with Apache Netbeans 11.2. As mentioned above deleting Cache worked but I will add I replaced the install folder, I did not have an installer. By unzipping the download again and replacing the install folder, it worked, the zipped download was good but it seems the install folder was corrupted also.
我在 Apache Netbeans 11.2 上遇到了同样的问题。如上所述,删除缓存工作但我会补充说我替换了安装文件夹,我没有安装程序。通过再次解压缩下载并替换安装文件夹,它起作用了,压缩的下载很好,但安装文件夹似乎也已损坏。