Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

launch other programs from Java app

 
steve anson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic