无法在Netbeans 9中设置Apache Tomcat [英] Not able to setup apache tomcat in Netbeans 9
问题描述
我正在尝试在Netbeans IDE 9中设置apache tomcat.我尝试了以下步骤,但是无法设置.
I am trying to setup apache tomcat in Netbeans IDE 9. I have tried following steps, but could not setup.
- 在工具"->服务器"中,我单击了添加服务器"按钮.显示以下消息.
-
因此,我尝试从工具"->插件"安装插件,显示一个对话框,但是当我尝试更新插件列表时,它无法连接.实际上,NB IDE尝试连接到不存在的页面.
So, I tried to install plugins from the Tools->Plugins, a dialog box is displayed but when I try to update plugins list it is not able to connect. In effect NB IDE tries to connect to non-existant page.
因此,我实际上无法成功安装Apache Tomcat服务器. 我也在使用NB 8.2,一切正常.任何帮助将不胜感激.
So, I am effectively not able to succeed in installing Apache Tomcat server. I am also using NB 8.2 and everything works fine. Any Help will be appreciated.
我正在将Windows 10 Prof与JDK 10一起使用.
I am using Windows 10 Prof with JDK 10.
感谢您的期待.
推荐答案
您遇到了这个问题,因为存在一个更大,更普遍的问题:NetBeans 9不正式发布 支持Java EE或Web应用程序开发.例如,除了无法添加Tomcat服务器之外,您还会注意到您也无法通过项目向导"创建Web项目.
You are hitting this problem because of a larger and more general issue: NetBeans 9 does not officially support Java EE or web application development. For example, as well as not being able to add a Tomcat server, you will notice that you can't create a web project through the Project Wizard either.
这是有原因的:NetBeans已从Oracle迁移到Apache,最初的重点是提供稳定的Java SE环境,包括对NetBeans 9中JDK版本9和10的支持.
There is a reason for this: NetBeans has been migrated from Oracle to Apache and the initial focus has been on providing a stable Java SE environment, including support for JDK releases 9 and 10 in NetBeans 9.
但是,可以自行承担将Web和Java EE开发所需的插件添加到NetBeans 9的风险:
However, it is possible to add the plugins needed for web and Java EE development to NetBeans 9 at your own risk:
第1步,共2步:使Java Web和EE插件可用.
- 工具>插件>设置标签> ,单击添加按钮.
-
在更新中心定制程序屏幕上:
- Tools > Plugins > Settings tab > click the Add button.
On the Update Center Customizer screen:
- 在名称字段中输入一些描述性值(例如" NetBeans 8.2插件")
-
输入 http://在 URL 字段中的updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz :
- Enter some descriptive value in the Name field (e.g. "NetBeans 8.2 Plugins"),
Enter http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz in the URL field:
单击确定按钮以关闭 Update Center Customizer 屏幕.
确认现在有几个类别为 Java Web和EE 的条目.如果是这样,则说明您已成功使插件可用:
Verify that there are now several entries with the category Java Web and EE. If so, you have successfully made the plugins available:
第2步,共2步:安装Java Web和EE插件.
- 检查所有 Java Web和EE 条目,如上面的屏幕快照所示,然后单击安装按钮.
- 按照向导的说明进行操作.插件将被下载并安装,并且您将需要重新启动NetBeans.
-
重新启动后,右键单击服务器节点.现在,您应该看到添加服务器实例向导,该向导允许您添加Tomcat服务器:
- Check all of the Java Web and EE entries as shown in the screen shot above, and then click the Install button.
- Follow the wizard's instructions. The plugins will be downloaded and installed, and you will be required to restart NetBeans.
Following the restart, right-click the Servers node. You should now see the Add Server Instance wizard, allowing you to add the Tomcat server:
这篇关于无法在Netbeans 9中设置Apache Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!