How to run a JAR file on Windows ?
Hey NehaGupta,
The easiest route is probably upgrading or reinstalling the Java Runtime Environment (JRE).
Alternatively, you can try this:
- Open Windows Explorer and select ‘Folder Options…’ from the Tools menu.
- Click the File Types tab, scroll down, and select the JAR file type.
- Press the Advanced button.
- In the Edit File Type dialog box, select open in the Actions box and click Edit…
- Press the Browse button and navigate to the location of the Java interpreter
javaw.exe
. - The Application used to perform action field should display something like:
(Note: the part starting with ‘javaw’ must be exactly like that; the rest of the path may vary depending on the Java version you are using.)C:\Program Files\Java\j2re1.4.2_04\bin\javaw.exe -jar "%1" %
- Press OK until all the dialogs are closed.
Dear Nehagupta,
The easiest route is probably upgrading or reinstalling the Java Runtime Environment (JRE).
Alternatively, you can right-click any .jar
file, select “Open with,” and choose “Java Runtime Environment.”