简体   繁体   中英

Can't create Java Web Application in NetBeans

I want to write a java web application using NetBeans 7.0.1, but i can't find the option Java Web in File -> New Project . Do i need to get any special Java edition to do that?

  1. Go to the Tools menu and select Plugins.
  2. Click on the "Available Plugins" tab.
  3. Check the box for "Java EE Base" (note: on older NetBeans versions, the plugin to install was called "Java Web Applications").
  4. Click the "Install" button.
  5. Click your way through the dialogs until the plugin and its dependencies are installed.
  6. Restart the IDE.

You should now find "Java Web" in File -> New Project.

  1. Go to the Tools menu and select Plugins.
  2. Click on the "Available Plugins" tab.
  3. Check the box for "Java EE Base".
  4. Click the "Install" button.
  5. Select "Web Projects" from plugin list
  6. Check the term & condition checkbox
  7. Click next and wait while NetBeans downloading the plugin
  8. Restart IDE

My answer will provide images for you to understand easily.

Go to Tools -> Plugins like this image

插件

In Plugins windows, select Available Plugins tab, choose and install Java EE Base like this image JavaEEBase

Now just follow the instruction and install the plugin, when it's done, restart the Netbeans, then you can create Java Web Application like this image 创建网络

Well, maybe you cant find Java Web in the installation list, so, search for Java EE Base, in Netbeans 7.x is the option, and includes the comment that includes Java Web and EE.

regards

I had problems while finding the plugins under the Available plugins tab. The reason was under the settings tab, the three checkboxes were unchecked. I checked them all and then I can see the plugins under the Available plugins Tab.

And then I followed the steps mentioned in other answers. Hope this is also useful to this context.

If you have NetBeans 8.2+ and installed the EE edition, open the plugin panel from Tools -> Plugins . Go to the installed tab and check the Java EE Base plugin. Then activate that plugin.

If you need other options as well the select all the plugins under the Web and Java EE category and activate them.

In my case Above mentioned thing didn't worked for me.

I have installed multiple JDK (JDK version 8 and 9) due to which Netbeans 8.2 might not working as expected and then I was unable to create project.

Then I removed JDK9 and cleared cache from \\Users\\admin\\AppData in windows.

Then I was able to create Java Project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM