A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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:
subject: I cant run any jar files
So I Got This Game, See...
Can't get a jar to run with dependencies
Classpath and Jar file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014