Good day. I am trying to change the auto-generated main class in Netbeans.
By default, whenever I make a new project, Netbeans automatically creates the class below:
package com.mycompany.mavenproject1;
/**
*
* @author Salti
*/
public class Mavenproject1 {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
However, I'd like it to be like this:
package com.mycompany.mavenproject1;
public class Mavenproject1
{
public static void main(String[] args)
{
}
}
I tried changing the 'Java Main Class' located in 'Tools->Templates->Java". However, any changes I make there amount to nothing as there is still no change in the auto-generated class when I create a new project. I also made sure to save the changes, as well as restart Netbeans, but still to no avail.
Thank you very much!
More info in case it is needed:
Win11
Apache Netbeans IDE 18