Jar file problem

Hey guys, im having some trouble with making a jar file.

In the command line i type

jar cvfm MyApp.jar MyApp.mf *.class

and it makes the jar file for me, but when I try to run the file by typing:

java -jar MyApp.jar

i get an error saying

Failed to load Main-Class manifest attribute from

A1.jar

my manifest file looks like this:

Manifest-Version: 1.0

Main-Class: driver

any suggestions?

[460 byte] By [MichaelRizzelloa] at [2007-11-26 23:46:43]
# 1
Try using this command to run:java -classpath MyApp.jar driverIf that works, the manifest file has a problem, check that you have it correctly formatted: http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html
ChuckBinga at 2007-7-11 15:20:20 > top of Java-index,Java Essentials,Java Programming...