In Windows simply using: start anyfile.pdf will open the associated viewer for PDF files. I have no idea for Linux and MacOS. Maybe Java itself have something to abstract OS differencies...???
Bye Paolo Rizzi > -----Messaggio originale----- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] conto di > Sunburned Surveyor > Inviato: martedì 18 settembre 2007 2.18 > A: List for discussion of JPP development and use. > Oggetto: [JPP-Devel] Using PDF Files As Embedded Help > > > I decided that I would try Peppe's idea of using PDF files as embedded > help in OpenJUMP. > > I'm going to have a "help" button in some of the dialogs in my Super > Select Tool. The button will open a designated PDF file using a PDF > viewer/reader. > > I would like to know if we can use a common variable to store the > location of the PDF file the user would like to use to view the help > files. I can set this up for just my plug-in, but then we might get a > situation where the user is specifying his PDF viewer for everyone's > plug-in, and that would stink. > > I was thinking that we could use a text file with the path to the PDF > viewer, or that we might have an entry in the Registry. > > What do you guys think? > > Is there a way to use the Java runtime to dynamically determine which > program should be executed for a specific file type? (That would be > too cool!) > > The Sunburned Surveyor > > P.S. - I'm going to try to use ProcessBuilder to fire up the PDF > viewer with the correct help file. I've got the command down using the > Microsoft Windows terminal, so I think ProcessBuilder will do the > trick for me. > > If others will use this system to present embedded help I will try to > wrap my code in a simple API that everyone can use. > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel