Reputation: 129
Ok, I recently wrote a program for my fathers company. I tested it on both of my computers, my dad's computer, and my mom's computer before he sent it out. He sent the beta version to his CEO, and 4 others. It worked just fine for the CEO and 3 others. However, one person got an error when he tried to open the program that said "The main startup class could not be found." I know that this means it could not find the main class or method, I just don't know why. He said he installed the latest version of java and I provided the right download link when I distributed the program. How can I fix this problem?
Upvotes: 2
Views: 210
Reputation: 5052
There are a number of different factors that can cause this, but the most probable is that the computers don't have the appropriate Java Version
.
My approach to solve this is to make the program in Java 5 standard. The very most part of the computers today should have at least JRE5.
As you are developing in NetBeans, try changing the compiling level of your project as described here
Upvotes: 2