Java 在 NetBeans 中打开项目时缺少插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3338121/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 22:24:27  来源:igfitidea点击:

Missing Plug-In When Opening Project in NetBeans

javanetbeans

提问by Avalanchis

I've inherited a java project that appears to have been developed using the NetBeans IDE.

我继承了一个似乎是使用 NetBeans IDE 开发的 java 项目。

It contains a nbproject subdirectory.

它包含一个 nbproject 子目录。

When I try to open the project using NetBeans 6.9 it reports the following error in the Project Name text box:

当我尝试使用 NetBeans 6.9 打开项目时,它在项目名称文本框中报告以下错误:

<unrecognized project; missing plug-in?>

How can I determine which plug-in it is looking for?

我如何确定它正在寻找哪个插件?

采纳答案by Mchl

See what's the value of <type>in project.xml. In your case it is <type>org.netbeans.modules.web.project</type>. When you look up this project type on the internet you will find out that you should try installing 'Java Web and EE' plugin.

看看<type>in的值是多少project.xml。在你的情况下是<type>org.netbeans.modules.web.project</type>。当您在 Internet 上查找此项目类型时,您会发现应该尝试安装“Java Web 和 EE”插件

回答by Charles Hand

Since Netbeans doesn't leave a record of what plugins it used to create a project, the only thing you can do is install all the plugins. This has been a bug in netbeans for ten years.

由于 Netbeans 不会留下它用于创建项目的插件的记录,因此您唯一能做的就是安装所有插件。十年来,这一直是 netbeans 中的一个错误。

回答by Toby Fernsler

To avoid this problem in the future, enable a library folder for the netbeans project (preferences>libraries>Libraries Folder>browse..: http://netbeans.org/kb/docs/java/project-setup.html#projects-shared-libraries

为避免将来出现此问题,请为 netbeans 项目启用库文件夹(首选项>库>库文件夹>浏览..:http: //netbeans.org/kb/docs/java/project-setup.html#projects-共享库

回答by Mohamed

I have the same problem when i tried to open a symfony project ! Fortunetely, i solved this problem in Netbeans : tools > plugins then i installed php

当我尝试打开一个 symfony 项目时,我遇到了同样的问题!幸运的是,我在 Netbeans 中解决了这个问题:工具 > 插件然后我安装了 php

Good luck ;)

祝你好运 ;)