#SELECT WHICH APP TO OPEN FILES IN WINDOW 10 WINDOWS#
You do not have a ‘Java development kit’ or JDK installed on your Windows 10.This issue mainly arises due to 2 things: – To fix this problem, one has to convert the file from WinRAR to actual java format. Method 3: If your jar file is in WinRAR formatĪnother issue that a lot of users face with jar files is that their jar files are in the format of WinRAR files, and when they try to open it, it opens in WinRAR instead of the java format.
Hit enter after you have typed this command, and then you should be able to open and run your JAR file.
Here, in place of (File path), copy and paste the path where your JAR file is stored. Once the dark interface of the command prompt opens up, type the below-mentioned command: –įtype jarfile=”(File path)\javaw.exe”-jar “%1” %* Give the required permissions to the command prompt, such as making changes to the system. Go to the search box at the bottom of your home screen and search for ‘cmd’ or ‘command prompt’.Right-click on the command prompt and select “Run as administrator”. Method 2: Opening jar File Using Command Prompt Once this is done, you can directly click and run the JAR file. In it, click on ‘apply’ and then on ‘Ok’. When you click on the javaw, a box will appear. In the window that appears, go to C, then select “Program Files (x86)”. Scroll down to the bottom and click on “look for another app on this PC”. Click on ‘change’ in the box that appears. When you run this file, the jar file will open up along. Make sure you save it in the same folder where the JAR file resides. In place of (filename), write the name of your respective JAR file.Ĭlick on ‘file’ then ‘save as’.Save the file with the extension ‘.bat’.