How To Start Internet Explorer from a Java Application (283225)
The information in this article applies to:
- Microsoft SDK for Java 4.0
- Microsoft Internet Explorer 5.0 for Windows 98
- Microsoft Internet Explorer 5.01 for Windows 98 SP 1
- Microsoft Internet Explorer 5.5 for Windows 98 SP 1
This article was previously published under Q283225 SUMMARY
It has been widely documented on the Internet that you should use the following code to start your default browser from a Java application:
rundll32 url.dll,FileProtocolHandler http://www.microsoft.com/ms.htm
However, when Internet Explorer is identified as your default browser, you receive the following error message:
Unable to open "http://www.microsoft.com/ms.htm".
This code does work if you do not specify the page as follows:
rundll32 url.dll,FileProtocolHandler http://www.microsoft.com/
NOTE: This solution is considered obsolete. It is now documented that you should use the ShellExecute function.
REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbhowto kbJava KB283225 kbAudDeveloper |
---|
|