i am not saying that all of my jar files are not working. in fact, all of them do work so far except for this one game that i've made. it runs perfectly in my editor, but its jar file will not execute.
i checked its MANIFEST.mf file and the main class is there and correct.
what is wrong with this??

where is your code ...

and which code are you used to making jar....

during jar creation...
use

jar cfe jarfilename.jar mainname mainname.class

in this case no need to include manifest file or edit and add main class to the manifest file(jar working fine)

if u want to create jar by use more class files then use

jar  cfe  jarfilename.jar   mainname    *.class

this is already solved, i made a silly mistake in the code..

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.