Open URL in IE using Java's Desktop class
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.
精彩评论