how to execute a jar file
I have written java code using eclipse , this java code has a jdbc connection and classes12.jar has been added to the program and a jar file has been created .
Now when i try to run the jar file , it does not run . So i created a bat file with the path of the jar file in it and kept the jar file , bat file and classes12.jar file in that folder and tried running the bat file , it is running.
My question , is does the classes12.jar file should be added to the folder again to execute the bat file ?
and also how can i achieve running the jar file , without using the bat file ?