Setting default browser?

Hi,
I am using java.awt.Desktop's browse() method to open an url. But if there is no default browser set on user's system it will throw an IOException.
So please tell me how to avoid this exception. or set default browser.
Thanks
lakshya

Maybe some of this info is cached and that cached needs to be cleared (don't know which cache that may be though).

Similar Messages

  • [solved] How to set default browser for qt apps ?

    hi ,
    I'm running a LXDE session and I can't figure out how to set opera as a default browser in qt apps . they default to firefox .
    Any ideas ?
    Last edited by Nezmer (2008-11-21 11:37:52)

    grep wrote:
    http://kb.mozillazine.org/Setting_Your_Default_Browser
    I read this guide before .
    The DE I'm running is LXDE and the apps are pure qt4 .
    how can this guide be helpful ?
    Last edited by Nezmer (2008-11-16 19:06:23)

  • How to set default browser for SM_CRM (like Firefox)?

    Hey guys,
    as in the company environment, IE version is too old for CRM Web UI - performance problem and it can't be changed soon, I'd like to ask how to use SM_CRM (with single sign-on) to open the browser window in Firefox?
    Firefox is already set as default browser, but SM_CRM still opens IE.
    Any suggestion is welcome!
    Thanks!
    Kris

    grep wrote:
    http://kb.mozillazine.org/Setting_Your_Default_Browser
    I read this guide before .
    The DE I'm running is LXDE and the apps are pure qt4 .
    how can this guide be helpful ?
    Last edited by Nezmer (2008-11-16 19:06:23)

  • Problem setting default browser to Firefox

    Hey everyone,
    I'm stumped and could use some help. I have set my default browser to Firefox (Safari - preferences - default browser - Firefox.)
    Here's the problem: I click on a URL in Mail and get an error message. (Result - clicking the URL won't open Firefox) I go back to Safari and the default is set to "Firefox copy." I only have one Firefox. I cannot find a copy anywhere. Whether I set the default browser with the drop down menu or by choosing "Select - Applications - Firefox" the same thing happens.
    I don't have my OS X discs with me though I can go to an Apple Store to reinstall the OS. If there is a less drastic solution, I'd be grateful. (Just spent two days in Apache, MySQL, PHP setup **** and don't want to mess any of that up)
    Thanks
    PS Don’t remember the exact error message but it is the same one everybody gets if their default browser is not set up.

    Sorry, I guess I wasn't clear.
    Here's the problem: I click on a URL in Mail and get an error message. (Result - clicking the URL won't open Firefox) I go back to Safari and the default is set to "Firefox copy." I only have one Firefox. I cannot find a copy anywhere. Whether I set the default browser with the drop down menu or by choosing "Select - Applications - Firefox" the same thing happens.
    There is no "Firefox copy." Safari changes what I choose ("Firefox") to "Firefox copy." Since there is no "Firefox copy" the URL will not open in the nonexistent "Firefox copy" or in the Firefox I do have because it will not stay set as the browser default.
    How do I get rid of the "Firefox copy" choice in Safari's default browser dropdown menu? And/or how do I get Safari to leave the default browser choice as "Firefox" (not "Firefox COPY!") Remember there is nothing on my computer called "Firefox copy." It only shows up on the drop down menu when selecting a default browser.

  • Setting default browser for Mail's contextual menu items

    I use Firefox as my default browser. In "Safari>General>Default Web Browser" I have it set to Firefox and URL links within Mail trigger Firefox as expected.
    However, if I right-click within an email message on some text and select 'Search in Google' it opens in Safari regardless of the default browser indicated in the Safari preferences.
    Anybody know how to fix this? It's very annoying.
    Dual 2.0 GHz G5   Mac OS X (10.4.8)  

    Hello,
    I have been searching for the cause of this failure, but have not found much. It may relate to some problems with Contextual Menu Items, discussed within the article at the link below, but I do not know for sure:
    http://www.macdevcenter.com/pub/a/mac/2004/05/28/cm_pt1.html
    and may relate to some incompleteness in Firefox, rather than OSX, per se. The contextual menu items are separate from the default preferences, I believe.
    Btw, while I like some aspects of a Google search with Firefox, the fact that PDF links are downloaded, rather than opened in the browser, make me prefer Safari for searches. Perhaps there is a preference to cure this problem, but I have not looked very hard for it.
    Ernie

  • [Solved]Unable to set default browser

    Using XFCE I can set the default browser from settings/Preferred Applications to either google chrome or firefox both of which are installed. I set chrome as preferred and can get online no problem. The setting will stay for sometimes days or maybe a few minutes before the system 'forgets' what preference has been set and reverts to no preference set.
    Using thunderbird to open links in emails always opens Firefox despite the default browser being set to chrome. In fact firefox always stays set as default browser under preferences/general and I can have firefox and chrome open at the same time with both claiming they are the default browser. If I set the system preference to firefox then open chrome it detects it is not the default browser and allws me to set it as default, this always seems to set the system preferences to not set so it removes firefox but not not set chrome, if I then open firefox it does not give the message about not being the default but checking in preferences/general it is already set as default.
    I seem to be going around in circles for the last few weeks, can someone point me in the right direction?
    Last edited by weedfreak (2012-09-23 09:43:11)

    Well I had also tried using XFCE Preferred application to set it and that also did not work, there was also an anomaly with the menu entry for Web Browser, it always claimed there was no preference set and I needed to select the session browser from the list.
    The link provided was not really a lot of help directly, but it did point out that xdg-open is broken and gave me some directions to search in, eventually I found the ~/.local/applications/mimeapp.list contained a lot of references to firefox that stayed in place even if preferences were changed, they were listed before the chrome entries. I deleted every line with firefox in then when I tried a link from Thunderbird I was asked to choose a browser and the change stuck, the web browser menu link also works correctly.
    Not sure if this is really solved or if it is a workaround but I'll mark it solved.

  • Setting default browser in Windows on iMac

    I am running Windows XP Pro on my iMac. I want to set it up to open Google Chrome (Mac) when I click a link in my Windows email program. I had that set up before and messed it up. But I can't remember how I did it before.
    Can anyone help me get the default browser in Windows to open as Google Chrome for Mac or Safari....either one.
    Thanks so much. My email program is Incredimail.

    No go. I tried again, and I am back to Safari being default. However, if I go to the Start Menu, click "Run...", type "www.google.com", and click OK, Safari comes up with Google, but I get the error:
    "Windows cannot find 'www.google.com'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search."
    If I do the same thing with Firefox or IE when they pop up correctly with no error.
    Also, playing around with it some more, it appears that I can only get this far if I set Safari as the default browser from the dialog that asks if you want to set Safari as default when Safari starts up.
    If I go into the Safari preferences, set say Firefox as default, and then type a URL into the Run box, Firefox comes up. If I then change the default browser back to Safari in the Safari preferences, Firefox will still be the default browser.
    If I then close the preferences, close Safari, restart Safari, and look at the preferences, Safari is shown as default, but Firefox is still really the default browser.
    Same thing happens if I go through the Program Access Defaults dialog. Safari will show as default, but Firefox will still be the default browser.
    I am running XP SP3.
    Safari 4 runs beautifully on all of my Macs, though. I just can't use those for work.

  • [SOLVED] LXDE / Evolution: setting default browser?

    Hello,
    Recently I switched to LXDE coming from Gnome, and clicking an URL in an email doesn't open my browser anymore.
    I searched gconf-editor to set my default browser app, and found some references to epiphany (that I changed to firefox), but that doesn't seem to have fixed it.
    Anyone?
    Last edited by zenlord (2008-09-04 16:04:34)

    Army wrote:I think this has to be set up in your email program! I use claws-mail and there is an option for this. I think evolution is too much integrated into gnome to be able to  do such a setting in the program itself, maybe it looks into Gnome's defaults, which you cannot set without the configuration tools of gnome.
    My recommendations:
    Use another mail programm, i.e. claws-mail, which I like pretty much.
    Install Gnome (minimal installation), do the settings and uninstall it afterwards or let it on the machine, if it doesn't disturb you.
    Yes, it looks like I should switch to another emailprogram, but at the moment I'm tied with hands and feet to evolution, since I'm using webcalendars and LDAP-contacts. Thunderbird + lightning is coming along nicely, but it cannot write to LDAP and claws-mail has calendar-support, but it is slow and the GUI to it is very arcane.
    The gnome-settings are stored IIRC in gconf, and I cannot find the right entries
    Zl.
    /EDIT: thought about it and did a new search in gconf-editor and found out that I still had some references to a test-setup for firefox 3.0beta. This thread can be closed as it is solved. THX for your answers!
    Last edited by zenlord (2008-09-04 16:04:13)

  • Can't set default browser [SOLVED]

    Hi, I'm running GNOME-Shell (I wasn't sure if this belongs to testing forum or not), and I want Opera to be my default browser.
    As for DE, I changed  gconf-editor>desktop>gnome>url-handlers>http and https to "opera %s". Nothing happened.
    As for Arch itself, i added "opera" here: https://wiki.archlinux.org/index.php/Ch … lt_browser
    Nothing happened, my default is still Firefox. Any other solution?
    Last edited by centos (2011-04-19 14:10:17)

    Well yes, but I wasn't sure if this was gnome-related
    Thanks, this works. But I'd have sworn that I checked this menu before and Opera wasn't one of the choices.
    Solved.

  • How to set default browser in blueman?

    Hi all,
    I've managed to get my bluetooth phone working with blueman ok but when I try to browse a device I get:
        Failed to launch "nautilus"
        [Errno 2] No such file or directory
        You can enter an alternate browser in service settings
    I haven't been able to find any worthwhile reference to what the third line means - and not for want of trying. The blueman install only seems to provide  ~/.config/blueman/bueman.conf  - which is a binary. In fact, `file blueman.conf` returns "8086 relocatable (Microsoft)" which is something I've never come across before.
    Does anyone know a solution to this? The Arch wiki describes blueman as "a full featured Bluetooth manager written in GTK and, as such, is recommended for GNOME or Xfce". It doesn't then follow on with "...but only if you install nautilus and a range of other unrelated crap including the whole Gnome Desktop".
    Ideally I'd like the blueman browse function to lauch thunar (as would most people who run an Xfce desktop). If anyone could give me any ideas on this I'll be mightily grateful.
    Willie
    (Who's been with Arch for one week now - something of a seat-of-your-pants experience, but no less wonderful for that)

    Many thanks guys for both of your replies.
    Yes, it seems the basic problem is lack of obex support in anything other than nautilus.
    There's a little on the subject here too:
         http://thunar.xfce.org/pwiki/documentat … -obex-send
    I also have a need for reliable mobile broadband connectivity via a Huawei USB dongle, so in the short term I've gone back to the outsized Gnome + networkmanager. I'll tinker with Xfce on a separate small partition to see if I can get as I want it.
    Arch, though, is brilliant. And this is a friendly, knowledgeable community. I'm having great fun!

  • Firefox not default browser

    In our school computers we use Firefox as a browser and Evolution for email. But both under Windowmaker (Me) and Gnome (The rest of the school)  we can't get Firefox to be the default browser. Under WM Firefox continually pops up a window asking if Firefox should be the default browser but it doesn't stay that way. Furthermore, clicking on links from email does not bring up Firefox.
    Cordially,
    S. Barret Dolph
    Taipei Taiwan

    Beetlenut wrote:Could you write exactly what should be in the Bashrc. Currently there is nothing in the Bashrc about browsers.
    to set default browser in ~/.bashrc
    export BROWSER='mozilla-firefox'

  • If Firefox is set as the default browser, and any application attempts to open a new window, this fails and I get the error "Firefox is already running..."

    Here is what I am running:
    Microsoft Windows 7, Service Pack 1, Fully updated to 4/10/2012
    Fresh Install of Firefox 11. No add-ons enabled as a result of troubleshooting.
    I am a user with administrator rights
    UAS is disabled.
    To begin, this has been going on Since Firefox 10 or so. A few months now.
    I am able to open Firefox. My add-ons worked (ABP, Flashblock, ABP Element Hiding Helper, IETAB2, Downthemall, Greasemonkey, 4chan extension) had no problems. Firefox is set and has been set for the last two years as my default web browser.
    However Since approximately Firefox 10 or so, maybe before that, If I have a Firefox session open, and any other application attempts to open a session in a new window, I get the Firefox is already running, but not responding error."
    I attempted to follow troubleshooting advice already posted (look for parent.lock files left behind [none present], multiple sessionstore.js files [none present], create a new user profile, attempted to clear out the "read-only" permission in windows 7, however as soon as it is cleared, the read only permission returns.)
    As a last resort, I deleted the Firefox folder, the %APPDATA%/Mozilla directory in its entirety, then utilized CCleaner to remove any and all references to Firefox in the windows registry, then did a full re-install, no extensions installed right now.
    I checked preferences and have the option "open new windows in a new tab" checked off. The problem persists regardless if this option is checked on or off. This problem persists in or out of safe mode, even with the brand new install.
    Test Cases:
    All cases:
    Firefox is selected as the default browser for windows 7
    Case 1: Open a firefox session. Utilize any other program that attempts to open a link to their website in a new browser window or new browser session. Experience "Firefox is already running" error
    Case 2: Open a firefox session. Right click on Firefox on the task bar. Select "open in new window". Experience "Firefox is already running" error
    Case 3: Open a firefox session. Select the Firefox Menu > New tab > New Window. A new window will actually open.
    This is the only method of opening a new window in the same browser session or profile that actually works on my system. Attempting to open a browser session from the task bar "open new window dialog" or opening a new window while a current window/session is running will not open firefox in a new window or a new tab in the current session. The "Firefox is already running, but is not responding" error will occur every time.

    Cor-el's suggestion resolved my problem. Apparently the MOZ_NO_REMOTE variable was set to 1 on my system variables. I never made it, and really have no idea how it got there, but deleting this variable and restarting firefox has resolved the issue. Thanks Cor-el!
    Marking case: Solved
    Solution: Verify the MOZ_NO_REMOTE variable is NOT set to 1. This can be achieved by simply deleting this variable.

  • After installing the safari update for windows outlook is not opening email links. I have set safari as my default browser but hyperlinks won't open a browser window - I get an error message - "This operation has been canceled due to restrictions in effec

    After installing the safari update for windows, outlook is now not opening email hyperlinks.  I have set safari to be my default browser but outlook won't open it when I click a link.  I get the following message: "This operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator."  Please help.

    Hi mcclausky, you may need to manually remove a policy setting from the registry. You also should scan for malware that might have created this problem.
    This article lists scanning and cleaning tools other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    To check your Windows registry for policy settings that might affect Firefox or other programs, I suggest consulting a Windows forum or Microsoft's forums. For example:
    * http://windowssecrets.com/forums/
    * [http://answers.microsoft.com/en-us/windows/forum/windows_8-system/this-operation-has-been-cancelled-due-to/9677848e-072d-4206-87f4-9da9284d6151 This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator. - Microsoft Community]
    * [http://answers.microsoft.com/en-us/windows/forum/windows_xp-security/restrictions-this-operation-has-been-cancelled-due/8af1d0cd-8fbd-4223-9396-86d7497bb275 Restrictions. This operation has been cancelled due to to restrictions in effect on this computer.Please contact your system administrator. - Microsoft Community]

  • How do I set firefox as the default browser in Windows Server 2012 Group Policy Editor?

    Hello, I am unable to set firefox as the default browser despite multiple different attempts to do so using group policy.
    I have:
    - Set a registry command (targeted at 32/64 via a WMI query) to reset the opening command as shown below:
    HKEY_CURRENT_USER\Software\Classes\http\shell\open\command
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -osint -url "%1"
    - Set a powershell logon script to run (that does run):
    firefox.exe -silent -setDefaultBrowser
    Despite setting the above it seems the client computers browsers are not affected by the settings above. When the script runs or if I run the command above a UAC window pops up and requests that I accept the command (for the setDefaultBrowser) but even if I click yes as an administrator it does nothing.
    Since GPO in 2012 has changed perhaps there is something that I am missing? Do I need to somehow disable Windows Internet Explorer from achieving default browser status?
    Please do not reply if you will suggest that I use Internet Explorer Maintenance (since this function in GPO has been disabled since IE10)
    My DC is Server 2012, my client computers are Win7 32/64.

    The above reply does not take into account that I am trying to use GROUP POLICY EDITOR to make it the default browser.

  • I set Firefox as default browser, and now IE is gone. How do I get it back?

    I downloaded the current version of Foxfire and set it as my default browser. I need to apply for work and many companies only support IE. I clicked on IE and only Foxfire opens on that icon. I can't find my IE, my bookmarks there are gone and I can't apply for the jobs! I took Firefox off as default browser, but it didn't bring back the IE. I am very unhappy at this point and need help!
    == This happened ==
    Every time Firefox opened
    == when I set Firefox as my default browser

    After a lot of messing around with settings, and different windows, I found that it's only the desktop icons that are defaulting to open the Firefox browser. If you go to your program list, and open IE there, it works and all the bookmark info is still there.

Maybe you are looking for