How do i run a jar file from command prompt??

IF it's an executable jar, "java -jar <jarfile.jar>" where <jarfile.jar> is the filename of the jarfile (fully qualified if not on the current system path).

If it's not an executable jar, you can't obviously run it.
You can however run a class inside it (if it has a main method) using "java -cp <jarfile.jar> <classname>" where classname is the fully qualified classname of the class to run (so including the full package name).

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.