[RESOLVED] Having errors with my .jar files...
Whenever I build my projects in netbeans to a .jar file they work fine on that machine. However, when I transfer them to another machine and execute them I get the following error:
The main class cannot be found.
I set the main class to the right one in netbeans before building it and like I said it works fine on the machine I built it on but not on others... what could be the problem?
Re: Having errors with my .jar files...
The class path, perhaps.
Or perhaps a version conflict. Aren't you using JDK 1.6? Do the other machines have a 1.6 JRE, or do they have a 1.5 or 1.4?
Re: Having errors with my .jar files...
Nevermind... the problem was with netbeans' jar builder. I switched to building jars with eclipse and they work fine.