Launch default browser to view local HTML

I have a documentation written in HTML and I want my application to launch the user's default browser in Unix or Windows to view it.
How can I do it ?
Actually, I tried to show the doc in a EditorPane of my app but I only get a beep and no exception.
Is it because the doc is long and with pictures?
thanx!

To my knowledge, there's no 'default browser' in Unix. You can try looking at these articles to see if they help:
http://developer.java.sun.com/developer/qow/archive/15/index.html
http://www.javaworld.com/javaworld/javatips/jw-javatip66.html

Similar Messages

  • Can't launch default browser to view help

    when I go to the help section it states there was an error launching the default browser and than I may need to reinstall the application and the help component.....how do I do this and what caused this to start happening....thanks
    [ title changed to something useful by admin ]

    See if you can launch the browser from your file browser (explorer on windows and finder on mac)
    If you can not, then that is an OS issue and someone here may help, but would need to know what OS you are using since the directions are different for each OS.
    If it does launch , let us know and someone will help with the directions as long as you provide what OS you have and what version of photoshop you have. Again the directions differ.

  • Firefox is my default browser in my local system, i am getting junk data when i open the .html type of files as attachment but there is no issue when i open as inline

    Hi,
    could please help me of the folloing issue
    i have set up the firefox is default browser in my local system.
    issue with only .html type files not with .doc .... etc.
    my application requirement is to view the attached document if set Content-Disposition as "attachement" then open the dialog box with open or save radio options then if i select the open option data getting as junk data not the actual data.
    if set Content-Disposition as "inline"' then file open in same accessing browser with proper data.
    Note
    i am using following piece of code in my application
    response.setHeader("Content-Disposition", "attachment;filename=\""
    + fileName + "\"");
    actual my case is :
    some where in my application i copy/paste the data from ms-word
    then it saved as .html file after that when i want to see the data, then click on the attachment it opens dialog box, here i am selecting open option then it opens in my default browser "firefox" with junk data .
    please observe the following junk data,

    Hi 20fox12, this is most likely an IE problem. Firefox has no effect on any other installed applications. Unfortunately I have no idea what to do about your issue. I'd suggest a forum that is more tuned towards Windows issues.

  • Unable to view local HTML content from "Help Content Only" SSL  iFrame

    Hi
    Can anyone confirm whether it is possible to view local HTML files within an iFrame when generating Help Content Only SSL content which is also locally deployed?
    I have had no problem viewing local html files from within an iFrame with a locally viewed Browser-Based Help project but despite trying a number of variations on the syntax, I simply cannot obtain the same result from a Help Content Only SSL that is then incorporated within a merged help system. I can however create hyperlinks to view local content using the following syntax (file:/C:\folderName\fileName.html - the only drawback for local preview is that you must right-click and select "open in new tab"). Essentially, I am trying to eliminate the requirement to have to right-click and open in new tab to view local html files.
    The project I am working on is deployed both locally and remotely and this whole process is necessary for emergency management and business continuity purposes.
    I hope my explanation isn't too convoluted and would be glad to clarify it further if required. I would appreciate any assistance!

    Hi John
    I appreciate you and Peter obtaining this  information from Adobe and I appreciate your continuing patience in  trying to understand what I am doing.
    I will start  from the beginning and hopefully clarify my process when deploying my  application locally (my remote process differs somewhat but is not  germane to this discussion). Obviously this will contain some repetition from previous posts but I hope it helps...
    The project itself integrates content created from Adobe RoboHelp with content created within Adobe Dreamweaver
    First, I should mention that I am using RoboHelp 8 as I don't believe I have addressed which version I am using. There's nothing particularly unusual about the project itself.
    Utilizing Dreamweaver I have created a self-contained HTML-only (no server-side functionality) website which is placed at the root level of the C: drive
    Within the RoboHelp project I create a hyperlink to access the local HTML files from the RoboHelp topic pages. The process I use to do so is from within the HTML view of the specific topic page and I use the following file path: "file:/C:\folderName\fileName.html". The only end-user requirement is that they must right-click and select "open in new tab", otherwise the link does not work. Please note, this is ONLY required for accessing the local HTML files.
    I output my RoboHelp project using the Adobe Air SSL, with the output type set to "Help Only Content" which creates the .rha files. I utilize multiple .rha files within my project as each .rha file constitutes a module specific to an individual municipality (in my particular instance)
    I use the Help Viewer Wizard from the RoboHelp "Toolbox" pod to create what I refer to as the "shell" .air file. Once the "shell" .air file created from the Help Viewer Wizard is  installed, it creates a shortcut on my desktop.
    I place an XML .helpcfg file within the directory on C:Program Files where my "shell" .air file has been installed to reference each .rha module which must be placed at the root level of the C: drive in order to be properly referenced by the .helpcfg file
    By double-clicking on the desktop shortcut created in Step 6 it opens the "shell" module which, in turn, loads in each individual .rha file which can be accessed individually from the drop-down menu in the top-right corner
    Why do I do it this way?? My organization severely restricts admin privileges on our workstations. We have one IT person / several hundred officers so I needed to create a system where the only time we need IT assistance is in the initial installation of the "shell" .air file created from the Help Viewer Wizard and placement of the .helpcfg file within the C: Programs folder. Once this is done, because the .rha files are on the C: drive, I can swap these out and update as necessary (we currently have an annual renewal cycle) and we require no further IT intervention. The local system I have just described has hyperlinks to the online browser-based help so that users can also access it and see any content updates made throughout the course of the school year
    Having said all that, based on the model I have just described, I have been trying to create iFrames from within my RoboHelp 8 topic pages (placed on my C: drive) to access the local HTML Dreamweaver site (also on my C: drive). The problem I have been having is that the resultant iFrames display only a blank white page and I have tried a number of variations on the syntax of the file path without success.
    The process I have been using to create the iFrame is as follows:
    In Design view, select Insert >> HTML >> iFrame
    In the iFrame dialog box, provide a name for the iFrame and then navigate to the local file on my C: drive level Dreamweaver HTML-only website that I want to link to.
    Click "Apply" and from the resulting dialog box states that "This action will create an external link to the help system... Do you want to continue?", I click "Yes"
    The resultant file path is "../../../../../folderName/fileName.html" which obviously won't work but I have created the iFrame and now I switch over to HTML view and insert the file path that I have been using for the hyperlinks ("file:/C:\folderName\fileName.html"). I also modify the width to 100% and the height to 1000 px
    The user is not being directed to a different domain. So, if as Adobe states, that iFrames are "supported in local AIR Help (.rha) as well" then I don't know why it will not work for me. Again, this is the file path that allows me to create a hyperlink which will access my local Dreamweaver HTML files: "file:/C:\folderName\fileName.html" so if that syntax works for a hyperlink, why will it not work for the iFrame?
    The videos I referenced are also contained within the local Dreamweaver HTML site
    My usage of the term "merged help" may have been unclear and hopefully steps 1-8 outline what I am doing
    Again, I am very grateful to all who have joined this discussion to try to help me! I think it should be manifestly evident by now that I am self-taught and basically that's the only excuse I can offer in my defense for my poor articulation. Not too many years ago I wanted nothing whatsoever to do with computers!

  • Elements 13: error in launching default browser. [was: help?]

    just bought photoshop element 13  when I tried help I get error in launching default browser?

    I have a similar problem.  When I try to reach Help, I get error message HTTP 403, which says  "This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
    For more information about HTTP errors, see Help.

  • Error launching default browser

    I had downloaded and installed the trial versions of PSE 12 and PRE 12 in late November, 2013. Purchased both December 23, 2013 and downloaded both. Did not realize I could just enter the new product codes, and instead re-installed both. All seems to working, but when I click HELP>SUPPORT, I get error message: There was an error launching the default browser. You may need to re-install the application and the Help component. Does this refer to reinstalling PSE and PRE or the browser which is IE9? Had a chat seesion with Mohammed who told me to contact tech support who want me to pay for help. This does not seem right for a new purchase.
    Also, since the purchase occured on December 23, 2013 and today is January 3, 2014 I wonder why I am already getting emails that I have reached my limit in Revel. I thought I had thirty days for unlimited initial uploads.

    is your issue resolved now?
    ~Surendra
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • View local html files

    Does anyone here know how to view html files which are stored locally on iPhone?
    Thanks

    Unfortunately, iPhone Safari doesn't support the "file://" protocol.
    Not having local storage of web apps was, and is, a big limitation.
    Some companies I contract to, have large business apps written under IE6 on handheld Windows CE devices. The apps are stored on the device. When the iPhone (and Safari Windows) came out, we thought about modifying them to run under Safari. The limitation stopped that idea.

  • Simple Browser which support locally saved html file having Marquee text

    I want simple java browser in which I can run locally saved html file having marquee text in it.
    My requirement is to show html file in Oracle forms.For that i need JAR Files of that browser which support html file(locally saved & support marque text).
    Because i use several browser which support locally html file but not support marque text.These browser display static html file not marque text in it.
    Can anybody help me.
    Regards

    1. There is no reliable way of guessing the encoding of a file without that information. Thats why XML for example has very strict rules wrt. it's encoding (short form: use UTF-8 or UTF-16, if you use anything else, you'll have to specify it)
    2. you might be able to make an educated guess if the possible range of encodings is limited, but it will probably never be 100% certain
    3. The HTML file might have a header entry "<meta http-equiv..." that tells you about it's encoding. You could try to read the start of the file and see if you find that, then if you found it re-read the entire file.
    regards

  • How to check whether a default browser is opened in the operating system?

    Hi,
    I am newbie here. During my work, I faced an interesting problem. I need to:
    - check whether a default html browser is opened;
    - check whether the browser is minimized/maximized (simply, a window's state);
    - get an url address typed in the browser.
    If any of these conditions is not met, I have to open the browser in a maximized view with a desired url address. I primarily wanted to do all this in Java, but it came to my mind that I should employ many techniques/technologies and combine them appropriately to complete the functionality. But, which ones? That's the problem. I just recalled Windows API, but I'm not sure if it is of any help... On another forum, some users suggested that I should consider JNI... At this time, I only know how to open a default browser (e.g. with use of the 'browse(URI uri)' method of the 'java.awt.Desktop' class) - that's too little to be proud of. Please give me some hints, maybe links to reasonable discussions, I would greatly appreciate any suggestions how to approach the problem.

    Crosspost! [http://www.java-forums.org/advanced-java/29583-how-check-whether-default-browser-opened-operating-system.html]

  • Default browser isn't invoked

    Lately, when I run .JSP and .HTML file, the status says 'Ruuning, Compiled successfully.' But, the HTML(or jsp) file never runs in the browser. The files are perfectly fine, but, I have no idea what has changed. How do I reset the default browser, which is in this case, IE5.
    S

    To launch the browser, JDev "executes" a .html file, and lets the Windows file associations take care of launching the right program. So if the .html extension isn't mapped to any application in Windows, or if the mapped application executable doesn't exist, then the browser won't launch.
    You can override this behavior by going to Tools | Preferences - Web Browser/Proxy and specify a full path to the browser executable that you would like to use.

  • How to display local HTML file in web-view?

    Hello everyone,
    we have no problem with showing of remote HTML content from server in box on page in web view. But how we can show such a content when included in HTMLResources? In guide is just "Display a local HTML file in an in-app browser", which works wihout problem, but we don't want to show this HTML content in in-app viewer, it should be part of page.
    Thanks
    Martin

    Now i'm confused. In guide is this:
    To use local HTML files, click the folder icon and specify the local HTML file. The HTML file (such as index.html) should appear in a folder that includes any images or scripts used in the HTML file.
    But no info where such a local HTML file should reside. If this file is in HTMLResources, it is ignored.

  • Cannot open HTML files on Win7 using FF 3.6.10 as default browser.

    When I click on any HTML file in Windows 7 (64 bit, Ultimate) I get an error dialog that says "There was a problem sending the command to the program."
    The only way I can open local HTML files is with IE as default browser - which I do not want.
    I first noticed the error when clicking links in emails in Outlook 2010. But now it also happens on any local HTML file - like help files (help files that I really need to be able to easily read).
    I have tried editing the registry (this solution found at http://www.raymond.cc/blog/archives/2008/03/25/fix-general-failure-when-open-link-or-url-from-outlook-and-windows-mail/) which temporarily fixed the problem, but would not work a second time to fix the issue as the change I made was still present in the registry, so nothing to do.
    I tried making IE the default browser then making FF the default browser again, but that didn't work.
    I tried checking the default program for HTML files in Win7, but that is set to FF.
    I don't get it. This just started happening in the last 2 weeks or so.
    The "This happened" drop-down below is not entirely correct. This happens whenever I click on a local HTML link or a link in an Outlook email. But, the "This happened" drop down does not have an option for "When I click a local HTML link".

    ( links in emails )
    this is what fixed my issue with links in my windows live mail
    in Firefox go to tools >options >advanced > general tab > at the bottom click the check now button to make sure Firefox is your default browser . if its not click yes to make it default now your links in emails should open in Firefox properly

  • Opening a byte stream of HTML content in the default browser

    Hi,
    I have a ByteArrayOutputStream which holds HTML content. Can anybody tell me how to open it in the default browser with out saving the content to a file?
    Thanks and regards
    Unni

    Weeeeeelllll. You could implement your own mini http server, then launch the browser pointing to localhost....
    Some browsers have automation interfaces that you could technically use to do something like this, but you are way outside the realm of Java land at that point.
    If your code is running as an Applet, there may be some sort of interface that allows you to do this (it's been so long since I messed with applets that I can't really say - my initial inclination is to think "probably not", as this could violate the security sandbox... but who knows).
    - K

  • Default browser window from HTML

    I am just building a simple HTML app and want to open a new window to an existing web page from the air app that opens in a default browser window rather than spawining a new air window.
    I have been banging my apparently limited-capacity head against a wall for 8 hours now with no luck.
    Can anyone tell me how to get this done? I am guessing it's as simple as adding a piece of code to my app xml file and a corresponding piece of code to my HTML page where I have the link?
    Any help will be sincerely appreciated.
    Bill

    I have a similar problem:
    I have built a web app for the iPhone which works splendidly in AIR, except that it's links to external sites will not open in the default browser.
    Currently I have one HTML file in the AIR app: redirect.html which simply redirects to my web app.
    If I set <script>window.htmlLoader.navigateInSystemBrowser = true;</script> the redirect to my web app opens in Firefox instead of AIR. If I set that on the home page (and all subpages) of my web app it's as if nothing was ever set.
    I am new to AIR so I am making these assumptions:
    window.htmlLoader.navigateInSystemBrowser = true; must be set on the first page loaded by the AIR app.
    server-hosted pages cannot open anything in the default browser.
    Is there are a way to set it up so my AIR version of the web app can simply mirror locally the code from my server, thus allowing me to access the default browser? I have tried an iframe which actually just caused the web app to load in Firefox like the redirect.
    Any advice would be helpful.
    Thanks.

  • Windows 7: associating preferred editor with .html makes think it's not default browser

    I'm running Windows 7 Pro x64 and FF 3.6.13 .
    My preferred editor for '''editing''' .html files is gvim. However, when I permanently associated .html files to be opened by gvim, the next time I start FF it says it is not the default browser and if I want to set it to default.
    When I do this, make FF my default browser, and then double click any .html file, it doesn't open in my preferred editor but in FF.
    I always thought default browser primarily means for browsing the web, but in my case it clashes with how I prefer to work with local documents.
    This is tested with a new, empty profile.

    I understand, but I want it as '''default browser''', but not default file opener.
    I also want that check in case another browser comes along bad and takes my FF away.
    I don't know, for me these are two separate things, but it seems they aren't. Confusing.

Maybe you are looking for

  • T.CODE:OB52 Problem

    Hi Now you at Quality server for Unit testing and Integration testing but problem is when you are using T.Code:-OB52 its showing display mode so you cannot open and closed posting periods. What is the problem is in fianance moduel or basis module cou

  • Part of my code won't work in Firefox

    I'm not really good at coding and I have some problems with my code. I create animated menu in Edge Animate using jquery and then imported it in Muse as a edge file. It's working perfect in IE and Chrome, but something caused problems in Firefox - me

  • N:1 Map ???

    Hello Everybody! Does anybody know if there's a associative Array that supports mapping a Set of Keys to an Object?? Some PseudoCode with the basic Operations to make it clearer : Interface N_1_Map{ public void put( Object[] keys,Object value); publi

  • Opening Password protected pdf through code

    Hi Guys, I need to create a script in vbscript for opening a Password Protected pdf file. The file needs to fetch the password from a notepad. How can i Automate the code for opening the file n number of times without the 'Password' window getting di

  • Error; publication terminated = FTP subcommand: Server reports error

    Hi i am getting the above error. I followed the best practice documents. I dont have any clue as to how to go about the same.. used catalog and catalog1 for FTP and HTTP directory the publishing target is  IMS_DOCS_A5C hostname "serv10000" also in th