Problems with Creating New Java Projects in Netbeans

Asked

Viewed 28 times

-1

Opões de Novo Projeto no Netbeans

The options for creating a new java project do not show the 'Java' option itself. The first option is Java Whith Maven as you can see.

Opções para Nova Aplicação Java

Among the available options or select Java Whith Maven the check-box for creating the main class is not available.

I already checked and the java is installed on my machine! Even the variable JAVA_HOME is configured.

Know any solution to this problem??

1 answer

0


Unfortunately Netbeans does not have this "basic" project option that already creates a main class (with the main method).

In the second option of your second image you will create a project structure with a standard package. Then you can create your classes within the package and one of them can be your main class. Do as follows:

Menu para criação de classes

Then choose the type of class template you want, in your case, Java Main Class:

Seleção do tipo de classe

Click the "Next" button and follow the instructions.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.