Netbeans Installation and Configurations
go to the following link https://netbeans.apache.org/download/index.html
download the exe and install.
Configuration with netbeans 12
open tomcat-users
file located in C:\Program Files\Apache Software Foundation\Tomcat 10.0\conf.
below is the example of configuration in tomcat-users
.
<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0">
<user username="ahmadkakarr" password="kakar" roles="admin-gui,manager-gui,manager-script" />
Plugins installation
if you get java.lang
error and servlet is not running. install the
I encountered this problem in Netbeans 12.0 today using OpenJDK 14. It turns out the problem was resolved by installing the nb-javac
plugin.
The installation of this plugin did work for me using Apache Netbeans 12.0, with JDK 8 to GlassFish 5.1.0 and for project’s java platform. Seems that it is needed in case you are using JDK just as a library, without define your environment variables, since my default JDK is 13. Here the describe of nb-javac plugin for someone who wants give more accurate statement about the need of it to run a servlet: https://blogs.apache.org/netbeans/entry/what-s-nb-javac-in
java.lang.UnsupportedOperationException: Not supported yet.