|
-
Jan 16th, 2007, 05:13 PM
#1
Thread Starter
Addicted Member
[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?
-
Jan 16th, 2007, 07:26 PM
#2
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?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 18th, 2007, 09:19 AM
#3
Thread Starter
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|