This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hey guys, does anybody know if its possible for java to open another program like internet explorer? What I'm trying to do is use jave to write and save a html file and then use internet explorer to open it. I have already written the code to write and save the html file and it works, but I'm not sure if it is even possible to have java open up a internet explorer window. If anybody knows if it is possible or definantly impossible please let me know, also if it is possible is there a way to have it come up with my html file already displayed in the window? Thanks in advance- Dan
Thanks Ernest, so if I understand this correctly to open up internet explorer I would use:
and that would open up internet explorer? If I copy/pasted this exactly into my program would it work? And do I need to import anything? Also one last tiny little thing, how can I get it to open up a specific file? Thanks for all the help!!! -Dan
No, that wouldn't work... I think you need to learn how to read the API. When you see public Process exec(String s), that is the method signature for exec. So when you call .exec() it accepts a String, and returns a Process. You aren't supposed to rewrite it.
Joined: Jun 21, 2004
sorry I'm new to this, so Darin, so if I understand you correctly I just need to use:
what should A be? Thanks for correcting me [ July 09, 2004: Message edited by: Dan Maples ]