Wednesday, July 14, 2010

JAR - RAR

Many a times it so happens when we install a new software it asks us or automatically chooses a list of file extensions that it can open and associates them with itself.

If you have the jar file but you do not see the extension ".jar"

Kindly go to "Windows Explorer" i.e. "My Computer" click on Tools->Folder Options->View

and uncheck "Hide extensions for known file" checkbox from the list.


Winrar is one such software. It associates .jar extension with itself, hence double clicking a JAR and expecting it to be executed, instead we see winrar exploring its contents.

Similarly, if double clicking the ".cmd" brings up the editor for editing the script rather than executing it we have to associate it to run with the correct program.

1. Press SHIFT + "Right Click" and select "open with".


If you dont find open with option that means your file is not associated to run with any tool / application or program.


2. "Select program from List" option and then click "OK" button.





3.Select "Java (TM) Platform SE binary.

Check the Checkbox at the bottom that say "Always use this program to open this kind of file"

Then click "OK"



Note: If you dont see Java (TM) Platform SE Binary that means JRE is not installed in your System.

Do install it from the below location and then try again.

The case with ".cmd" opening in an editor is not so straight forward as was the case with the ".jar"

Step 1 & 2 will remain the same however at step 3 click the "Browse" button.

and select "cmd.exe" from the following path "C:\WINDOWS\system32"

Another way to achieve the same is

1. Open "Windows Explorer" i.e. My Computer

Goto "Tools -> Folder Options".


2. Click on "File Types" tab. Select JAR from the list and then click the "Change" button. A new window will popup where you need to select Java (TM) Platform Binary SE and check the checkbox at the bottom which says "Always use the selected program to open this type of file".



Hope it helps.

No comments:

Post a Comment