Run jar file from bat file

You need a executable jar file. See how to create a jar file


Get the demo jar

Once your jar file is ready.

Step 1: Create a bat file with any name.

Step 2: Write the following line in you bat file.

If you want to hold the black screen. Use the following code

Now run the bat file and it will start you jar file