association « Development « Java I/O Q&A

1. Utilising a file association in a Java application

I am in the process of writing a cross platform Swing based application in which I want to utilize a file association which has been registered with the OS. So iv got ...

2. file extension associations

i'm using these classes org.jdesktop.jdic.* to change a file association for my desktop program. it works fine except it doesn't take effect until after a reboot. I want to know how to have the change take effect immediately like it does with other programs. I first remove the associations with the other program like you see below: private void removeWinzipExtensions() { ...

3. file type association with my java program

It can be done, but it's going to require a bit of extra work. First of all, you need to know where and how the file association is stored. Then you need to know how to create / modify associations. And you may also want to have an undo function that allows you to restore the previous file association, in case ...

4. how to create file association for java application

how to set a file association for a specifed file type in windows?? i am asking this because i cant set a file association to a .jar application, it has to be an exe.. is it a must to convert it to exe?? can anyone help me?? is it possible to trick this??

5. How to open files using default association

Hello, I'm trying to programmatically open files with their OS default associations. So for windows platform I have: Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + file.getAbsolutePath()); This does not work when file names contain unicode characters like "s.jpg". Does anyone have a solution for this? What is the proper and recommended way to open files? Thanks, Marcin

6. File Associations

7. A Native Bridge for File Type Associations

Im trying to write a mechanism where I can double-click on a file in Windows and have it processed by a Java application that is always running in the background. I know how to do file associations (and I know JDIC can create them) and I know how to launch Java apps from these associations using batch files and custom executables ...

8. Need API related to file association