BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with Main Class problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment
View previous topic :: View next topic  
Author Message
George Danner
Guest





PostPosted: Wed Mar 03, 2004 9:39 pm    Post subject: Help with Main Class problem Reply with 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:

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





PostPosted: Thu Mar 04, 2004 1:56 pm    Post subject: Re: Help with Main Class problem Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.