How to create Web Application in Apache Netbeans 1

2019-04-10 16:47发布

问题:

Just I've downloaded Netbeans 10. While creating new project, I'm not getting option 'Web Application'.

How to do it? Is there GUI design builder for web applications in Apache Netbeans 10?

回答1:

Unlike some earlier NetBeans releases such as 8.2, Apache NetBeans 10.0 does not support web development by default, and that is why you do not see an option for Java Web under the Categories listed within the Project Wizard. See What's Happened to My Favorite NetBeans Plugins? for additional background information.

However, web development can still be performed using Apache NetBeans 10.0. You just need to install some plugins first:

  • Go to Tools > Plugins and select the Available Plugins tab.
  • Ensure that the entries are sorted in ascending Category order. Click the Category column header to do that if necessary.
  • Scroll down and locate the entries for the Category named Java Web and EE.
  • Under the Install column check all of those entries:

  • Click the Install button to install those checked Java Web and EE plugins.

  • Follow the instruction for the Installer wizard. The requested plugins will be downloaded and installed, and you will be invited to click Finish to restart NetBeans.
  • After the restart select File > New Project.... There should be new entries in the Categories list named Java Web and Java EE, allowing you to create web and EE applications:

Troubleshooting:

  • If there are no entries for Java Web and EE on the Available Plugins tab then update your question with a screen shot of Tools > Plugins > Settings.
  • If the plugins appear to install correctly but Java Web and Java EE are still not available under the Project Wizard after a restart then update your question with:
    • A screen shot of Tools > Plugins > Installed, with the User Installed Plugins entry selected.
    • The recent content of the NetBeans log (View > IDE Log).


回答2:

If you're not seeing the Java Web and EE categories, you need to go into Settings and make sure Netbeans 8.2 Plugin Portal is checked like in the image below.