Re: Netbeans and eclipse difference?
Your main class is the one that has your main function. Say you're making an arcade game and you have a file called ArcadeGame.java that contains
Code:
public class ArcadeGame
{
public static void main(String args[])
{
// Tons of cool stuff goes here.
}
}
Your main class would be ArcadeGame. This is something you will have in all Java programs. NetBeans and Eclipse are just different IDE's, but are most likely using the same Java compiler (and other JDK components). They may require setting up projects differently, but the code will be the same.
The differences will be things like syntax highlighting, code autocompletion, debugging, refactoring features, search/replace, etc.
If you're using the same code in each IDE, then your issue is with how you set up your project in NetBeans. I primarily use vim for editing and build systems like Make, CMake, etc. so I can't think of exactly what to check in NetBeans off the top of my head. Look at the NetBeans documentation on setting up projects and make sure you added your files correctly.