user6889435
user6889435

Reputation:

Java Default browser name

I want to check what default browser is set on computer (name in string). I googled somewhat and i know how to open browser, but i need to check what program will be opened then. How to do this?

Upvotes: 0

Views: 1060

Answers (1)

Yosef Weiner
Yosef Weiner

Reputation: 5761

The information is in the windows registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice\Progid. You can read the key with Java.

Upvotes: 3

Related Questions