Quick Index
What Is A File Association?


If you have a favorite code editor, you may want to associate the editor to Java files.

This means that when you click on a Java file (in a file browser) the editor will automatically open.

We show the steps for Windows here, but also see "References" for the MAC.

Associating Java files


We will need a ".java" file for these steps. If you don't have one handy, you can simply open a file browser, and go to a scratch/play directory and create an empty "Foo.java" file...

NOTE WELL -- For these steps we'll assume you are using "Foo.java", but it could be any ".java" file.

Steps:


Now try double-clicking on Foo.java to make sure the editor opens.

Also see tips in "References" below (including for MAC)

File Association References