Java JAR Files Wont Open

In Windows 10, JAVA files with the extension .jar will sometimes not open as expected. Use the following steps to work around the issue.

  1. From the same folder the .jar file is located, right-click empty space and select New > Text Document.
    From the same folder the .jar file is located, right-click empty space and select New > Text Document.
  2. Double-click the new text file to open it in the Notepad app.
  3. In the text box, type the following: java -jar filename.jar 
Warning! Note there is  a space after the words java and -jar.
  1. Change filename.jar to match the .jar file you're trying to open. Example: java -jar energy-skate-park_en.jar

Change filename.jar to match the .jar file you're trying to open. Example: java -jar energy-skate-park_en.jar

  1. Select File > Save As....
    Select File > Save As....
  2. Near the bottom of the Save As window, click the menu that says Save as type:, and select All Files.
    Near the bottom of the Save As window, click the menu that says Save as type:, and select All Files.
  3. Name the text file as appropriate, and include .bat at the end of the file name.
    Name the text file as appropriate, and include .bat at the end of the file name.
  4. Save the .bat file in the same folder as the .jar file you specified in the document.
    Save the .bat file in the same folder as the .jar file you specified in the document.
  5. Once saved, close the text document, and double-click the newly created .bat file to launch the .jar properly.
Was this helpful?
0 reviews

Details

Article ID: 134812
Created
Wed 7/28/21 8:22 AM
Modified
Wed 3/29/23 9:29 AM

Related Services / Offerings (1)

Report issues with university supported software and applications or request installation or configuration assistance.