 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
George Danner Guest
|
Posted: Wed Mar 03, 2004 9:39 pm Post subject: Help with Main Class problem |
|
|
Hi folks--
I have had a problem getting an executable jar to work. I looked through the prior postings and really didn't get my answer, so let me post it here:
I created an executable jar using the wizard. When I inspected the archive, it had all of the right classes and a manifest file that looked like this:
Manifest-Version: 1.0
Main-Class: <.<
So, everything looks cool. But when I double-click on the jar, it says it cannot find the Main Class. This seems to be a recurring theme among many prior posts, and I have tried a number of things and still can't get it to work. The boss is pushing me to get this done...help!!
Regards,
George Danner
|
|
| Back to top |
|
 |
Kevin Dean Guest
|
Posted: Thu Mar 04, 2004 1:56 pm Post subject: Re: Help with Main Class problem |
|
|
Try running the following:
java -cp <jar file name> packageName.ClassName
I vaguely recall seeing "Main class not found" errors when, in fact, the
main class is there but a supporting class from another JAR file is not.
--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html
BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
"George Danner" <george.danner (AT) industrial-science (DOT) com> wrote
| Quote: |
Hi folks--
I have had a problem getting an executable jar to work. I looked through
the prior postings and really didn't get my answer, so let me post it here:
I created an executable jar using the wizard. When I inspected the
archive, it had all of the right classes and a manifest file that looked |
like this:
| Quote: |
Manifest-Version: 1.0
Main-Class: <.<
So, everything looks cool. But when I double-click on the jar, it says it
cannot find the Main Class. This seems to be a recurring theme among many |
prior posts, and I have tried a number of things and still can't get it to
work. The boss is pushing me to get this done...help!!
| Quote: |
Regards,
George Danner
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|