Nico Nico - 4 years ago 124
Java Question

Build and clean with specific source code in Netbeans

I have a project with four packages. One of them has the same name as the project (to lower case) and within a source code with the main method.

When i click build and clean I generate a ".jar" which starts the main method with this source code. I have another source code in another package of the project, i can click on it and run but i don't know how to build and clean from this source.

Do you know how to do this?

Answer Source

Go to Project properties > Run > Main Class:

When I clicked on build and clean I got a .jar with the main method i wanted.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download