could not find the main class
I have a program written on java, netBeans. I have problem on executing the program. the executable java works with no problem in my computer but when I try to execute the program in diferent computers, it gives the following error. "*could not find the main class. Program will exit" What should I do?
thanks - berkan
Re: could not find the main class
Make sure all your classes now where each other are. It could also be that you're trying to run a main method in a class that doesn't have one, when you really meant to call another class which does have one. Remember, all Java programs start from the main method (more or less).