FIX: Java Installation Not Completed – Unable to install Java error in Java .JAR files. (Solved)
If you cannot open .JAR JAVA files on a Windows 10, 8 or 7 based computer, with error "Unable to install Java. There are errors in the following switches: filename.jar. Check that the commands are valid and try again", continue reading below.
The error "There are errors in the following switches" while trying to open a JAVA .JAR file usually occurs because of multiple installed versions of Java on the PC, or because the the .jar association has been hijacked.
This tutorial contains instructions to fix the following Java error while trying to open a .jar file:
"Java Installation Not Completed.
Unable to install Java. There are error in the following switches: 'C:\Users\…\file.jar';.
Check that the commands are valid and try again."
How to FIX: Unable to Open Java JAR Files – There are errors in the following switches: 'file.jar'.
Method 1. Uninstall and re-Install JAVA on your system.
The first step, to resolve problems with JAVA, is to uninstall all installed versions of Java and to re-install the correct and most recent version of JAVA on your PC. To do that:
1. Download and run the Java Uninstall tool.
2. Choose Agree at the first screen. *
* Note: If prompted that "There is only one up-to-date Java version detected. Are you sure to continue?" click Yes.
3. Select all the installed Java versions and click Next.
4. Click Yes again to clean the cache
5. When the uninstall is completed, click the Get Java button or navigate to Java Download page to download and install the latest Java version. *
* Note: If you use 32-bit and 64-bit browsers, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers. You can download both Java versions from here.
6. After installing Java on your system, try to open the JAR file again and if you still face the same error, apply the instructions at method-2 below.
Method 2. Set "Java Platform SE Binary" as the Default program to Open .JAR files.
1. Right-click on the .jar file and choose Open with… -> Choose another app
2. Check Always use this app to open .jar files and click More apps.
3. Scroll down and click Look for another app in this PC.
4. Now navigate to the folder where JAVA is installed.
- For 64-bit versions of Java navigate to C:\Program Files\Java\jre_version\bin
- For 32-bit versions of Java navigate to C:\Program Files(x86)\Java\jre_version\bin
5. Select the "javaw.exe" application (Java Platform SE Binary) and click Open.
6. Now, the jar file should open without problem, but If you still face the sane error, follow the instructions on method-3 below.
Method 3. Repair Invalid Java files Association with Jarfix.
1. Download the Jarfix.exe tool from here.
2. Double-click to run the Jarfix tool to restore the .jar file association.
That's all folks! Did it work for you?
Please leave a comment in the comment section below or even better: like and share this blog post in the social networks to help spread the word about this solution.
- How to Sign Out from Netflix on Smart TV's. - March 26, 2024
- FIX: Packages folder is too large on Windows 10/11. - March 21, 2024
- FIX: Printer Error 0x000003e3 – Windows 10/11 Cannot Connect to Printer (Solved) - March 19, 2024
April
September 12, 2021 @ 7:05 pm
I had this problem with Java and found this and it worked!! Thanks so much!!
nvhryb
January 17, 2022 @ 6:45 am
Spent 6 hours trying to fix this finally got it because of this thank you.
Sean
February 22, 2022 @ 1:02 pm
Jarfix is a lifesaver, thank you so much!!!
Dragon
March 27, 2022 @ 1:36 am
For months I have been trying to solve this issue, thanks to jarfix I'm problem free, thanks for making this it was very helpful!!!
hehe
April 15, 2022 @ 2:25 am
Thanksssssssssss
Cara
April 16, 2022 @ 5:22 am
OH MY GOD THANK YOU SO MUCH THIS SHIT HAD ME RIPPING MY HAIR OUT
Charles Lepine
April 28, 2022 @ 11:15 pm
This is a life saver… I didn't think that there was a site on the internet which could help me
Samqwe
June 18, 2022 @ 3:57 am
TYSM!
fish
July 2, 2022 @ 1:49 am
ive been searching for a solution to this for at least an hour! this combined with another tutorial finally got me to the right place, thank you so much
Bailey
July 5, 2022 @ 7:39 pm
Ive been spending literally forever trying to fix this problem, tysm :))
Relyis
November 11, 2022 @ 5:48 pm
Method 2 worked for me. Thanks!
Linnea
January 30, 2023 @ 1:05 pm
ive been having this issue for a year, thank you so much the jarfix actually worked!!!
Microd
June 8, 2023 @ 12:22 pm
I dont know how it worked but i just clicked the download button for jarfix and it accually worked!? Nice.