Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: getting the default browser+MIME data Posted by zibadian on 7 Apr 2008 at 10:23 PM
: hi all
: I want to ask : how to get the current system default browser by
: java code at runtime (IE,firefox,...)? and how to get its specific
: version ? also how to get the supported MIME type of that browser
: also by java code?
:
: this is intended to be part of a network agent by java.
: thanks

For windows this can be found in the registry. One possible location is HK_CLASSES\.htm and HK_CLASSES\.html. I don't know if/where other OSes store their default browser.
Note: Applets can only access the registry with special privileges.
Thread Tree
waleed_cs2000 getting the default browser+MIME data on 7 Apr 2008 at 9:28 PM
zibadian Re: getting the default browser+MIME data on 7 Apr 2008 at 10:23 PM
ivo jonker Re: getting the default browser+MIME data on 9 Apr 2008 at 5:32 AM
zibadian Re: getting the default browser+MIME data on 9 Apr 2008 at 7:22 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.