Netbeans 禁用了所有功能 &当我中断插件升级过程时,它变成了一个简单的文本编辑器

发布于 2024-12-07 18:00:53 字数 4366 浏览 0 评论 0原文

我在插件升级过程中关闭了 Netbeans然后它就禁用了一切。如何取回之前可用的所有内容?我已尝试再次更新,但它显示:

您的 IDE 已是最新的!

可能它只搜索剩余的少数内容。它已经变得像一个简单的文本编辑器:(

无论如何我都不想丢失我的设置..使用netbeans 7


编辑:

我看到插件仍然安装但它们已被停用。当我尝试激活它们时,它失败了,发出以下消息:

激活失败:并非所有请求的模块都可以启用: [StandardModule:org.netbeans.modules.ant.kit jarFile: C:\Program 文件\NetBeans 7.0\java\modules\org-netbeans-modules-ant-kit.jar, 标准模块:org.netbeans.modules.form.kit jar文件:C:\Program 文件\NetBeans 7.0\java\modules\org-netbeans-modules-form-kit.jar, 标准模块:org.netbeans.modules.versioning.system.cvss jar文件: C:\Program Files\NetBeans 7.0\ide\modules\org-netbeans-modules-versioning-system-cvss.jar,StandardModule:org.netbeans.modules.hudson jar文件:C:\ Program 文件\NetBeans 7.0\ide\modules\org-netbeans-modules-hudson.jar, 标准模块:org.netbeans.modules.websvc.restkit jar文件:C:\Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-websvc-restkit.jar,StandardModule:org.netbeans.modules.core.kit jar文件:C:\ Program 文件\NetBeans 7.0\platform\modules\org-netbeans-modules-core-kit.jar, StandardModule:org.netbeans.modules.web.primefaces jarFile: C:\Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-web-primefaces.jar,StandardModule:org.netbeans.modules.apisupport.kit jar文件:C:\ Program 文件\NetBeans 7.0\apisupport\modules\org-netbeans-modules-apisupport-kit.jar,StandardModule:org.netbeans.modules.subversion jar文件:C:\ Program 文件\NetBeans 7.0\ide\modules\org-netbeans-modules-subversion.jar, StandardModule:org.netbeans.modules.localhistory jar文件: C:\Program 文件\NetBeans 7.0\ide\modules\org-netbeans-modules-localhistory.jar, 标准模块:org.netbeans.modules.spring.beans jar文件:C:\Program 文件\NetBeans 7.0\java\modules\org-netbeans-modules-spring-beans.jar, 标准模块:org.netbeans.modules.j2ee.persistence.kit jar文件: C:\Program Files\NetBeans 7.0\java\modules\org-netbeans-modules-j2ee-persistence-kit.jar,StandardModule:org.netbeans.modules.hibernate jar文件:C:\ Program 文件\NetBeans 7.0\java\modules\org-netbeans-modules-hibernate.jar, 标准模块:org.netbeans.modules.web.jsf.kit jar文件:C:\Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-web-jsf-kit.jar,StandardModule:org.netbeans.modules.mercurial jar文件:C:\ Program 文件\NetBeans 7.0\ide\modules\org-netbeans-modules-mercurial.jar, 标准模块:org.netbeans.modules.debugger.jpda.ui jar文件: C:\Program Files\NetBeans 7.0\java\modules\org-netbeans-modules-debugger-jpda-ui.jar,StandardModule:org.netbeans.modules.maven.kit jar文件:C:\ Program 文件\NetBeans 7.0\java\modules\org-netbeans-modules-maven-kit.jar, StandardModule:org.netbeans.modules.bugzilla jar文件: C:\Program 文件\NetBeans 7.0\ide\modules\org-netbeans-modules-bugzilla.jar, 标准模块:org.netbeans.modules.web.kit jar文件:C:\Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-web-kit.jar, StandardModule:org.netbeans.modules.java.kit jar文件: C:\Program 文件\NetBeans 7.0\java\modules\org-netbeans-modules-java-kit.jar, 标准模块:org.netbeans.modules.ide.branding.kit jar文件: C:\Program Files\NetBeans 7.0\nb\modules\org-netbeans-modules-ide-branding-kit.jar,StandardModule:org.netbeans.modules.spellchecker.kit jar文件: C:\Program Files\NetBeans 7.0\ide\modules\org-netbeans-modules-spellchecker-kit.jar,StandardModule:org.netbeans.modules.web.struts jar文件:C:\ Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-web-struts.jar, StandardModule:org.netbeans.modules.websvc.saas.kit jar文件: C:\Program Files\NetBeans 7.0\websvccommon\modules\org-netbeans-modules-websvc-saas-kit.jar,StandardModule:org.netbeans.modules.db.kit jar文件:C:\ Program 文件\NetBeans 7.0\ide\modules\org-netbeans-modules-db-kit.jar, 标准模块:org.netbeans.modules.profiler jar文件:C:\Program 文件\NetBeans 7.0\profiler\modules\org-netbeans-modules-profiler.jar, 标准模块:org.netbeans.modules.websvc.kit jar文件:C:\Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-websvc-kit.jar,StandardModule:org.netbeans.modules.ide.kit jar文件:C:\ Program 文件\NetBeans 7.0\ide\modules\org-netbeans-modules-ide-kit.jar, 标准模块:org.netbeans.modules.spring.webmvc jar文件:C:\Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-spring-webmvc.jar,StandardModule:org.netbeans.modules.j2ee.kit jar文件:C:\ Program 文件\NetBeans 7.0\enterprise\modules\org-netbeans-modules-j2ee-kit.jar]

I switched off Netbeans while the plugins upgrade was in progress & then it has disabled everything. How do I get back everything that was available before? I've tried updating once again but it says:

Your IDE is up to date!

Probably it searches only for the few things remaining. It has become like a simple text editor :(

I don't want to lose my settings anyhow.. Using netbeans 7


EDIT:

I see that the plugins are still installed but they have been deactivated. When I try to activate them, it fails, giving out following message:

Activation failed: Not all requested modules can be enabled:
[StandardModule:org.netbeans.modules.ant.kit jarFile: C:\Program
Files\NetBeans 7.0\java\modules\org-netbeans-modules-ant-kit.jar,
StandardModule:org.netbeans.modules.form.kit jarFile: C:\Program
Files\NetBeans 7.0\java\modules\org-netbeans-modules-form-kit.jar,
StandardModule:org.netbeans.modules.versioning.system.cvss jarFile:
C:\Program Files\NetBeans
7.0\ide\modules\org-netbeans-modules-versioning-system-cvss.jar, StandardModule:org.netbeans.modules.hudson jarFile: C:\Program
Files\NetBeans 7.0\ide\modules\org-netbeans-modules-hudson.jar,
StandardModule:org.netbeans.modules.websvc.restkit jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-websvc-restkit.jar, StandardModule:org.netbeans.modules.core.kit jarFile: C:\Program
Files\NetBeans 7.0\platform\modules\org-netbeans-modules-core-kit.jar,
StandardModule:org.netbeans.modules.web.primefaces jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-web-primefaces.jar, StandardModule:org.netbeans.modules.apisupport.kit jarFile: C:\Program
Files\NetBeans
7.0\apisupport\modules\org-netbeans-modules-apisupport-kit.jar, StandardModule:org.netbeans.modules.subversion jarFile: C:\Program
Files\NetBeans 7.0\ide\modules\org-netbeans-modules-subversion.jar,
StandardModule:org.netbeans.modules.localhistory jarFile: C:\Program
Files\NetBeans 7.0\ide\modules\org-netbeans-modules-localhistory.jar,
StandardModule:org.netbeans.modules.spring.beans jarFile: C:\Program
Files\NetBeans 7.0\java\modules\org-netbeans-modules-spring-beans.jar,
StandardModule:org.netbeans.modules.j2ee.persistence.kit jarFile:
C:\Program Files\NetBeans
7.0\java\modules\org-netbeans-modules-j2ee-persistence-kit.jar, StandardModule:org.netbeans.modules.hibernate jarFile: C:\Program
Files\NetBeans 7.0\java\modules\org-netbeans-modules-hibernate.jar,
StandardModule:org.netbeans.modules.web.jsf.kit jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-web-jsf-kit.jar, StandardModule:org.netbeans.modules.mercurial jarFile: C:\Program
Files\NetBeans 7.0\ide\modules\org-netbeans-modules-mercurial.jar,
StandardModule:org.netbeans.modules.debugger.jpda.ui jarFile:
C:\Program Files\NetBeans
7.0\java\modules\org-netbeans-modules-debugger-jpda-ui.jar, StandardModule:org.netbeans.modules.maven.kit jarFile: C:\Program
Files\NetBeans 7.0\java\modules\org-netbeans-modules-maven-kit.jar,
StandardModule:org.netbeans.modules.bugzilla jarFile: C:\Program
Files\NetBeans 7.0\ide\modules\org-netbeans-modules-bugzilla.jar,
StandardModule:org.netbeans.modules.web.kit jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-web-kit.jar, StandardModule:org.netbeans.modules.java.kit jarFile: C:\Program
Files\NetBeans 7.0\java\modules\org-netbeans-modules-java-kit.jar,
StandardModule:org.netbeans.modules.ide.branding.kit jarFile:
C:\Program Files\NetBeans
7.0\nb\modules\org-netbeans-modules-ide-branding-kit.jar, StandardModule:org.netbeans.modules.spellchecker.kit jarFile:
C:\Program Files\NetBeans
7.0\ide\modules\org-netbeans-modules-spellchecker-kit.jar, StandardModule:org.netbeans.modules.web.struts jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-web-struts.jar, StandardModule:org.netbeans.modules.websvc.saas.kit jarFile:
C:\Program Files\NetBeans
7.0\websvccommon\modules\org-netbeans-modules-websvc-saas-kit.jar, StandardModule:org.netbeans.modules.db.kit jarFile: C:\Program
Files\NetBeans 7.0\ide\modules\org-netbeans-modules-db-kit.jar,
StandardModule:org.netbeans.modules.profiler jarFile: C:\Program
Files\NetBeans 7.0\profiler\modules\org-netbeans-modules-profiler.jar,
StandardModule:org.netbeans.modules.websvc.kit jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-websvc-kit.jar, StandardModule:org.netbeans.modules.ide.kit jarFile: C:\Program
Files\NetBeans 7.0\ide\modules\org-netbeans-modules-ide-kit.jar,
StandardModule:org.netbeans.modules.spring.webmvc jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-spring-webmvc.jar, StandardModule:org.netbeans.modules.j2ee.kit jarFile: C:\Program
Files\NetBeans
7.0\enterprise\modules\org-netbeans-modules-j2ee-kit.jar]

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

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

发布评论

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

评论(3

遇到 2024-12-14 18:00:53

解决此问题的最简单方法是重新安装 NetBeans。我不相信您的设置已损坏。因此,为了保留您的设置,在卸载之前您需要导出您的设置。

  1. 打开选项对话框:工具>选项
  2. 单击“导出”按钮
  3. 选择用于 zip 文件的位置和文件名 选择要
  4. 导出的类别

请注意,如果未启用某个类别,则表示您尚未对该类别进行任何更改。

如果您定义了库并希望保存配置,则需要复制位于 .netbeans 目录中的 build.properties 文件,因为单独导出不会保存此配置(因为事实上这些设置应该能够重新定位到另一台计算机上,并且库特定于您的计算机)。在 Windows 中,.netbeans 目录位于您的用户目录中。例如,在我的计算机 (Windows 7) 上,此位置为 C:\Users\Jonathan\.netbeans

重新安装后,将设置导入回 IDE,然后替换 build.properties 文件。

The simplest way to fix this is to re-install NetBeans. I don't believe that your settings have been corrupted. So, in order to keep your settings, before you uninstall you'll need to export your settings.

  1. Open Options Dialog: Tools > Options
  2. Click Export button
  3. Choose a location and file name to use for the zip file
  4. Choose a category(s) to export

Note, that If a category is not enabled this means that you have not made any changes in that category.

If you have libraries defined and would like to save the configuration, you need to copy your build.properties file which is located in your .netbeans directory as exporting alone will not save this configuration (due to the fact that these settings should be able to be relocated on another machine and the libraries are specific to your machine). In Windows, your .netbeans directory is located in your user directory. For example, on my machine (Windows 7) this location is C:\Users\Jonathan\.netbeans.

After you've re-installed, import your settings back into the IDE and then replace the build.properties file.

半城柳色半声笛 2024-12-14 18:00:53

我遇到了同样的问题,在尝试了一些之后认为以下两个步骤可以解决问题:

  1. 使用 这个问题
  2. 从其文件夹中运行 netbeans,并使用上一步的结果指定 jdkhome:

~/netbeans-XX/bin/netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-amd64/

I had the same problem, after trying some thinks the following two steps solve the problem:

  1. Locate the java folder, using this question
  2. Run the netbeans from its folder, specifying the jdkhome with the result of the previous step:

~/netbeans-X.X/bin/netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-amd64/

春花秋月 2024-12-14 18:00:53

从 java 7 升级到 java 8 后,我遇到了同样的问题。浪费了几分钟后,我发现 netbeans 没有看到正确的 jdkhome。我分两步解决了这个问题:

  1. 在netbeans安装文件夹中,打开etc下的文件netbeans.conf强>目录。 就我的情况/home/his-kenya/netbeans-8.1/etc/netbeans.conf
  2. 设置netbeans_jdkhome指向你的jdk的绝对位置。如果文件之前没有被编辑过,这应该在第 57 行。 就我的情况而言netbeans_jdkhome="/usr/lib/jvm/jdk1.8.0/"

重新启动 IDE。

I had the same problem after upgrading from java 7 to java 8. After wasting a few minutes, I discovered that netbeans wasn't seeing the right jdkhome. I solved the problem in two steps:

  1. In the netbeans installation folder, open the file netbeans.conf which is under etc directory. As for my case /home/his-kenya/netbeans-8.1/etc/netbeans.conf
  2. Set netbeans_jdkhome to point to the absolute location of your jdk. This should be on line 57 if the file hasn't been edited before. As for my case netbeans_jdkhome="/usr/lib/jvm/jdk1.8.0/"

Restart the IDE.

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