I am doing a inventory assignment, I think I have completed the code, but when I try to run it I get <no main classes found>

I am using NetBean IDE 6.9.1

It also tells me:

Created dir: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist
Not copying the libraries.
Building jar: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist\InventoryPart1.jar
To run this application from the command line without Ant, try:
java -jar "C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist\InventoryPart1.jar"
jar:

I am not setting up my program right? When I start the java application I place:

[inventorypart1.InventoryPart1]

deniseblue

It states that you don't have a main method, meaning no method in the format:

public static void main(String args[])
{
   // something here
}

This is the method that is called first, and when it ends the program ends as well.

This is the method that is called first, and when it ends the program ends as well.

... unless the program has more than 1 thread (eg every Swing GUI program)

... unless the program has more than 1 thread (eg every Swing GUI program)

True, thanks for the correction.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.