Tuesday, June 08, 2004

JDesktop Integration Components (JDIC)...

I was over the moon when Java.net launched the JDIC (JDesktop Integration Components) project. Our administration appilcation acts in some ways like a remote file explorer, and so is required to open files in the appropriate application.

Well I've bodged this in Windows by calling:

Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler file:/" + filePath;

Luckily we don't have a drastic call to make the app cross-platform, but then this is Java so it basically offends my sensibilities that it isn't. JDIC seemed like just the ticket, except for one thing.....

...the one other platform that is of importance to us is Mac OSX, which is the one major platform that JDIC doesn't cover. I've been trying to think about why this is the case. The only answer that I've managed to come up with so far is that Sun started the project, and the covered platforms match up with those that Sun directly offers for Java, Apple producing the Mac OSX version of Java.

Anyway, these guys are desparately in need of all the contributors they can get, so I'm putting a plee out there for Mac people to contribute. To tell you the truth I wouldn't be surprised if Apple put some people behind this. I'm definately going to prompt the Mac fan in our office.

If you think you can help, please do.


Anonymous said...

What is that Runtime command you are doing? Will that set up the registry keys to do file associations? Can you explain this more thoroughly or point me in the right direction?

Matt Large said...

I can't remember where I found the information on this, but what it does is simply tell windows to open the file through the browser DLL. This will open the file in the application that it is associated to. I haven't looked into this in any more detail.

If you want to set file associations you should look at the JDIC project mentioned above as that will do this in a cross-platform way, although not for OSX.

Hope this helps.

Anonymous said...

Seeking OS X developers:

Unknown said...

louis vuitton outlet
uggs canada
air max 2015
cheap jordans
michael kors outlet
longchamp solde
nike blazer pas cher
ray ban sunglasses
swarovski crystal
michael kors canada

Unknown said...

rolex watches
louis vuitton handbags outlet
basketball shoes,basketball sneakers,lebron james shoes,sports shoes,kobe bryant shoes,kobe sneakers,nike basketball shoes,running shoes,mens sport shoes,nike shoes
futbol baratas
cheap jordans
coach factory outlet
hollister clothing store
kobe shoes
ugg boots uk
polo shirts

chenmeinv0 said...

bulls jerseys
michael kors outlet
ugg boots
ugg outlet
abercrombie oultet
ugg slippers
canada goose
celine outlet
toms outlet
louis vuitton handbags