association : Java Glossary
home A words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
association
In SQL, a many to many relationship between tables. In windows, a hare-brained scheme to associate file name extensions with the applications that process them. It is hard to use, buggy and irregular beyond belief.

To set them up in Windows, click Start ⇒ Settings ⇒ Control Panel ⇒ Folder Options ⇒ File Types. See the more detailed instructions on setting up the *.jnlp association. In Windows W2K/XP/W2K3/Vista you can now sort the list by extension or filetype by clicking on the heading. You commonly set up edit for example to use your editor in preference to wordpad for a given extension, e.g.

E:\vslick\win\vs.exe "%1"
The quote marks help deal with filenames containing spaces. The %1 is where the filename to edit will be inserted.

There are also another set of associations in your browser between extensions, MIME types and programs to deal with those documents.

In Vista, there is a simple editor for associating extensions with programs. it does not handle MIME types. Click Start ⇒ Default Programs (on right) ⇒ associate a file or protocol with a program.

  1. Start
  2. Default Programs (on right)
  3. Associate a file type or protocol with a program
Unlike earlier incarnations of Windows, Vista does not let you set up different associations for open, edit and print. You can just set up the open association. You might try out the Creative Element Power Tools to handle configuring all the associations and the icon.

java.exe vs javaw.exe

One of the most useful associations to set up is to make *.jar files executable with java.exe. Then you can just type the name of the jar on the command line to start it executing. If you use javaw.exe rather than java.exe you won’t see the console output. Watch out, Java installers often associate *.jar files with javaw.exe instead of java.exe, overriding your setting.

Vista no longer lets you configure the all the associations, e.g. open, edit and print. There is a way around that, using Creative Element Power Tools, other than manually modifying the registry.


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] Spread the Net
You are visitor number 11.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/association.html J:\mindprod\jgloss\association.html