A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
I cant run any jar files
Joined: Jan 12, 2004
Mar 25, 2007 10:08:00
I cannot run any jar files.
I downloaded Derby today to play around with databases
I get this error all the time:
"Failed to load Main-Class manifest attribute from
why is this?
Oh and any other Jars I download is the exact same
How simple does it have to be???
Joined: Mar 21, 2007
Mar 25, 2007 11:05:00
Not every jar file is runnable.
Let's suppose that you create a set of utility classes that you would like to assemble and distribute as a jar file.
It is very probable that none of the classes contained in your jar file has a
method. Maybe it wouldn't even make any sense to have any
method in your classes.
Just to begin with, you cannot directly "run" a jar file if there is no
method to be called in any of its classes. Even if a
method exists, if you would like to run it this way:
you would need to include a
entry in the jar's manifest file.
In the case of Derby, you should read its documentation, which explains how you are supposed to use it.
I agree. Here's the link:
- it saves me about five hours per week
subject: I cant run any jar files
So I Got This Game, See...
Classpath and Jar file
Can't get a jar to run with dependencies
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013