This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Alright... this is what I wish to do, coding in java : I work with html, pdf, ... files in my java program and I wish to be able, within the program, to open those files launching the default external program defined by the user in his operation system (like for exemple nescape or iexplorer to open a html file, acrobat for a pdf, ...). Does anyone knows how I can do that? Thanks in advance Zippy 007
posted 13 years ago
hi on a window system try the following: open the command prompt and type "start yourfile", hit enter. then yourfile is opened using the registered application for that type of file. you can do the same from a java programm trough the Runtime.exec() method.
this is very platform dependant, i hope somebody here can give you a hint on how to do this. greets, k