0

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

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by apines
0

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.

Edited by apines: n/a

1

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)

0

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

True, thanks for the correction.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.