 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bob Guest
|
Posted: Thu Dec 23, 2004 4:55 pm Post subject: Ok, I'm a doofus. But I would greatly appreciate your help. |
|
|
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
|
Posted: Thu Dec 23, 2004 5:02 pm Post subject: Re: Ok, I'm a doofus. But I would greatly appreciate your he |
|
|
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
|
Posted: Mon Jan 03, 2005 10:05 am Post subject: Re: Ok, I'm a doofus. But I would greatly appreciate your he |
|
|
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 |
|
 |
|
|
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
|
|