Jar files won’t open on Windows 10

Many websites use Java. In addition to websites, Java applications run locally on your PC. Applications are saved in the jar extension, but many users have reported that they won’t open in Windows 10. In this article, we have collected ways to fix the “JAR” problem.

Reinstall update Java runtime

Follow these steps:

  • Press Win + i at the same time, the Settings app will open.
  • Go to the “System” section.
  • Select Apps & Features in the left pane.
  • Find Java in the list and click the “Delete” option. (Note that you do not need to uninstall the previous version, if you wish, skip this step and just install the latest version from above).
  • Then go to the official Java website.
  • Download the latest software.

Check for updates automatically. In the notification window, select the Refresh option. Then follow the instructions of the program.

Set up file associations

Jar won’t start on your PC? – set up appropriate links to launchers.

  • Open “Settings”.
  • Go to System> Default.
  • Scroll all the way down and click “Choose default programs by file type.”
  • Find the jar type and select the default program.

The method above assumes a limitation on the software recognized by Windows 10. Didn’t it help you? Try:

  • Click Win Key + X and go to “Control Panel”.
  • Select “Default programs” and click “Associate a file type protocol with a program”.
  • Find the jar in the list and double-click.
  • A list will appear. Click More Apps.
  • Scroll to the bottom and select “Search this PC”.
  • Find javaw.exe. (By default, the application should be located in the Program Files folder).

Optional: Users recommend modifying the javaw.exe parameters. Create a shortcut to it. Go to Properties and add “-jar”% 1 “%” to the path.

Use Jarfix

Jarfix

 – software performing association setting. Run it and follow the instructions. Keep in mind that you will have to run it with administrator rights.

Create .bat

This solution requires you to create a .bat (a file with a bat extension that includes a list of commands) and use it every time you start it. The process is pretty simple:

  • Find the document.
  • In the same directory, create a new Notepad document. Click the right mouse button on an empty space in the directory> “New”> “Text Document”.
  • When Notepad opens, enter “java -jar filename.jar”. (Be sure to replace with your actual name).
  • Set “Save As” to “Everyone”. Now type in the title and save to the same directory.

Launching from the command line

Move the document to the root directory, for example “C: /”. After, follow these steps:

  • Press “Win + X” at the same time and click “Command Prompt” (“Administrator”) in the menu.
  • Enter the following commands into the window:

“CD” “java -jar filename.jar”

 To move the document, you will have to use the cd command to navigate to the directory.

Check if the permission is correct

In a situation where browsers do not save correctly. Do the following:

  • Find the problem document in File Explorer.
  • Go to the View menu and check the file name extensions.
  • See if your file has a jar at the end. Rename and add missing characters.

Use a browser other than yours to download and check if that fixes the problem. Hopefully one of the suggested methods helped you fix the problem. If this does not happen, then contact a technical support specialist.

Leave a Reply

Your email address will not be published. Required fields are marked *