• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Java Question

randumb

Platinum Member
How would I say, launch a word document, from within a java program? I've tried Runtime.getRuntime().exec("FILENAME"); but that didn't work.
 
On a windows system, to launch files like that you need to launch a cmd.exe process and pass the filename to it. On a *nix system, just calling the filename should work. There are various other ways to do this same thing, but I believe this is the "easiest" or at least the only one I can remember.

Windows example:
 
Originally posted by: Kilrsat
On a windows system, to launch files like that you need to launch a cmd.exe process and pass the filename to it. On a *nix system, just calling the filename should work. There are various other ways to do this same thing, but I believe this is the "easiest" or at least the only one I can remember.

Windows example:

Thanks a bunch!
 
Back
Top