I have developed a system using netbeans and I also have generated the jar file using netbeans(which was generated in dest file in the project folder). But the problem is when I move the jar file into another folder and and try to run it there, there is an error pops up mentioning that the main class can't be found....
In Jar file ,which is created make sure follwing,
you have manifest file MANIFEST.MF under META-INF directory
and it has the Main-Class header as follwing
Main-Class: <classname_which_contains_main_method>