AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ok, I'm a doofus. But I would greatly appreciate your help.

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Bob
Guest





PostPosted: Thu Dec 23, 2004 4:55 pm    Post subject: Ok, I'm a doofus. But I would greatly appreciate your help. Reply with quote



I think I've read every article written on manifest files for jar files but I
still can't get my jar file to run.

I can run my class file just fine so I know my code works, but when I run it
from a jar file...

K:UpdatethisUpdatethisdist>java -jar updatethisupdate.jar
or
K:UpdatethisUpdatethisdist>java -jar update.jar
or
K:UpdatethisUpdatethisjava -jar update.jar

I get this error:

"Exception in thread "main" java.lang.NoClassDefFoundError: updatethis/Main"

It doesn't *seem* to matter where I put the update.jar -- I still get the
same error.

My manifest file looks like this:

Manifest-Version: 1.0
Main-Class: updatethis.Main
Class-Path: k:vendor1.jar k:vendor2.jar .

Is there anything obvious that I'm missing?




Back to top
ByteCoder
Guest





PostPosted: Thu Dec 23, 2004 5:02 pm    Post subject: Re: Ok, I'm a doofus. But I would greatly appreciate your he Reply with quote



Bob wrote:
Quote:
I think I've read every article written on manifest files for jar files
but I still can't get my jar file to run.

I can run my class file just fine so I know my code works, but when I
run it from a jar file...

K:UpdatethisUpdatethisdist>java -jar updatethisupdate.jar
or
K:UpdatethisUpdatethisdist>java -jar update.jar
or
K:UpdatethisUpdatethisjava -jar update.jar

I get this error:

"Exception in thread "main" java.lang.NoClassDefFoundError:
updatethis/Main"

It doesn't *seem* to matter where I put the update.jar -- I still get
the same error.

My manifest file looks like this:

Manifest-Version: 1.0
Main-Class: updatethis.Main
Class-Path: k:vendor1.jar k:vendor2.jar .

Is there anything obvious that I'm missing?

What happens when you remove "updatethis." from the Main-Class line?

--
-------------
- ByteCoder - ...I see stupid people
-------------
Curiosity *Skilled* the cat

Back to top
Bob
Guest





PostPosted: Mon Jan 03, 2005 10:05 am    Post subject: Re: Ok, I'm a doofus. But I would greatly appreciate your he Reply with quote



ByteCoder wrote:
Quote:
Bob wrote:

I think I've read every article written on manifest files for jar
files but I still can't get my jar file to run.

I can run my class file just fine so I know my code works, but when I
run it from a jar file...

K:UpdatethisUpdatethisdist>java -jar updatethisupdate.jar
or
K:UpdatethisUpdatethisdist>java -jar update.jar
or
K:UpdatethisUpdatethisjava -jar update.jar

I get this error:

"Exception in thread "main" java.lang.NoClassDefFoundError:
updatethis/Main"

It doesn't *seem* to matter where I put the update.jar -- I still get
the same error.

My manifest file looks like this:

Manifest-Version: 1.0
Main-Class: updatethis.Main
Class-Path: k:vendor1.jar k:vendor2.jar .

Is there anything obvious that I'm missing?


What happens when you remove "updatethis." from the Main-Class line?


I *thought* I've read every article on manifest files, jars and packages but
apparently not. Entering 'manifest java jar package' into Google returns
over 1,500 articles in groups and over 53,000 articles on the web.
Eventually, I came across this page:

http://www.cs.usfca.edu/~parrt/course/601/lectures/java.tools.html

and his instructions worked out for me.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help 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.