i am creating my jar file
jar cvf javaappl.jar javaappl
jar cfm javaappl.jar manifest.txt javaappl

manifest is added correctly. but when i try to run
java -jar javaappl
Invalid or corrupt jar is displayed.
Earlier it has run, but the same thing is not running now.
What is the probable reason for this error?

manifest is added correctly. but when i try to run
java -jar javaappl
Invalid or corrupt jar is displayed.

use java -jar javaappl.jar instead of java -jar javaappl

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.