开发者

Open URL in IE using Java's Desktop class

开发者 https://www.devze.com 2023-03-01 03:25 出处:网络
The Desktop class opens a URL in the user\'s default browser when using the open() meth开发者_如何学JAVAod. How can a URL be opened in IE even when IE is not the default browser?

The Desktop class opens a URL in the user's default browser when using the open() meth开发者_如何学JAVAod. How can a URL be opened in IE even when IE is not the default browser?

Edit: Solutions do not have to use the Desktop class. I was using that as an example.


Try invoking, in System.exec() iexplore.exe 'http://my.url', which is the name of Internet explorer executable.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号