aspose file tools*
The moose likes Beginning Java and the fly likes launch other programs from Java app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "launch other programs from Java app" Watch "launch other programs from Java app" New topic
Author

launch other programs from Java app

steve anson
Greenhorn

Joined: Oct 20, 2003
Posts: 8
Hi
I am writing a program that writes .html files.
Does any one know how I can launch default browser to on the target system in order to test it (from within my java application)
Thanks Steve
Chris Harris
Ranch Hand

Joined: Sep 21, 2003
Posts: 231
Hi steve,
If you want to execute other programs from within you code have a look at
Runtime.getRuntime().exec(cmd);
Warning once you do this you program will be platfrom dependent.
Here is a good example of how to launch an internet browner.
Hope that helps.
Chris
[ November 21, 2003: Message edited by: Chris Harris ]

SCJP 1.2, SCWCD, SCBCD
 
 
subject: launch other programs from Java app