I would like to execute/run a jar file from command prompt. I use the command - This raises a "ClassNotFoundException" while trying to connect to a database. I understand that a certain jar file needs to be present in the classpath.
So, i did a set
However, setting this jar file in the classpath doesn't help me out here. How do i execute this jar file ?
posted 7 years ago
Make sure that the main class is well set in the manifest file (unzip the jar and check MANIFEST.MF). If no main class is set you should execute it by doing :