i do have a mainfest file
and then i did jar -cvfm myresult.jar mainfest.mf *.class
and i did
java -jar myresult.jar
and it gives me this error
C:\mysql\data\project>java -jar myresult.jar
Exception in
thread "main" java.lang.NoClassDefFoundError: javax/mail/Message
at readfileTest.main(readfileTest.java:6)
all of my files are compliling and running i don't know what the problem is
and this is the files i have in myresult.jar
C:\mysql\data\project>jar -tf myresult.jar
META-INF/
META-INF/MANIFEST.MF
readfile.class
readfileTest.class
Testing.class
and my manifest files looks like this
------------------------------
Manifest-Version: 1.0
Main-Class: readfileTest
------------------------------