I thought this would be an easy task but . . . 
I want my Java program to get the user's Windows file associations.
In other words, I want to know what the user uses to open .txt files, .cvs files, etc.
The assoc and ftype commands provide that info, but not for the user.
In other words, if I've set my text editor to Notepad++, 
assoc and ftype don't show it. They show the system default, Notepad, instead.
It looks like I have to get that info from the registry but I have two problems.
1) I don't know the exact registry keys I want to pull
 (though I've looked at "reg query HKEY\_CURRENT\_USER, HKEY\_CLASSES\_ROOT, etc.)
2) I don't know how to pull the key from the registry. I've seen JNI mentioned
 but haven't figured out the details.
Any hints appreciated.