Using Java, how can I detect all of the browsers that are installed on a system?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t.
You can open a page using the default browser on a system with Java 6 *, but you can’t list all browsers installed on a system.
Sure, you can iterate over Windows’
C:\Program Files\folder or *nix’s/usr/local(or other dirs) to check for browser names, but you might run into user-privilege issues and you’re never guaranteed to get all browsers, nor is this OS independent.