Open in external browser?

Hi folks, basically I have a HTML file being added to a JEditorPane, all working fine. When you click one of the hyperlinks in the file it opens the website in the java application! i.e. it updates the editorPane with the website.
Question: How can I code so it opens in the system's default browser. The code (or help given) needs to be platform independent. Here is my code:
    public void hyperlinkUpdate(HyperlinkEvent e) {
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
      try {
        editorPane.setPage(e.getURL());
      } catch(IOException ioe) {
    }Cheers!

This question may be a long shot...
I installed java 1.6 on my system (the preview apple release) and get the following error:
Invalid memory access of location 84130040 rip=811d8b7a
# An unexpected Java error has been detected by HotSpot Virtual Machine.
# If this error is reproducible, please report it with the following information:
# 1. Provide the steps to reproduce, a test case, and any relevant information
# 2. The corresponding JavaNativeCrash_pid<num>.crash.log (Java state)
# 3. The corresponding <name>.crash.log (native state; generated by CrashReporter)
# 4. This data:
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_04-b12-45-optimized mixed mode)
# An unexpected error has been detected by Java Runtime Environment:
# Bus Error (0xa) at pc=0x00007fff811d8b7a#
# Bus Error (0xa) at pc=0x00007fff811d8b7a, pid=381, tid=4300226560
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0_04-b12-45-optimized mixed mode macosx-amd64)
# An error report file with more information is saved as:
# /Users/matthewgreen/Library/Logs/Java/JavaNativeCrash_pid381.crash.log
# File report at: http://bugreport.apple.com/
Java Result: 138
BUILD SUCCESSFUL (total time: 5 seconds)
Any idea what could be wrong? Could it just be because its the preview release?
Cheers

Similar Messages

  • Links in blogs open in external browser

    Currently if a blog post in the RSS reader contains a weblink, it's opened in Cafe - which means that most of them don&apos;t work. There&apos;s no way to copy the link URL or to open it in an external browser, which defeats the point of reading them in here in the first place.
    Can we have a popup "open in browser?&quot; dialog when a link is clicked please, in which the URL is displayed and is copyable.

    Hello UVSAR-DM
    You can copy the URL form the Site tab, but I like your suggestion for an "Open in Browser" button. We will add that in the next dot release (end of July).
    Best,
    Marc.

  • Akregator "Open in EXISTING browser window" :D

    Hi,
    Been bugged by this issue for a while since I moved browsers. Now I'm accustomed to Akregator and actually quite like the way it handles RSS.
    However, I prefer browsing in a single window on a single desktop. I put Kontact (with KMail/Akregator) on the second desktop. Akregators default "Open in external browser" works well... as long as the existing window of Konqueror is on the same desktop as Kontact/Akregator.
    I created a custom bash script to handle this. Yes, it mainly comes from Kadu (the QT Gadu-Gadu client), but I've modified it a bit.
    #/bin/bash
    # Copyright (c) Kadu Team
    # Modified by Michal 'Neuro' Witkowski
    found=0;
    for i in `/opt/kde/bin/dcop | grep konqueror`; do
    isshown=`/opt/kde/bin/dcop $i "konqueror-mainwindow#1" shown`;
    if [ $isshown == "true" ];then
    /opt/kde/bin/dcop $i "konqueror-mainwindow#1" newTab "$1" && found=1;
    /opt/kde/bin/dcop $i "konqueror-mainwindow#1" "raise";
    fi;
    if [ $found == "1" ]; then
    break;
    fi
    done;
    if [ $found != "1" ]; then
    /opt/kde/bin/kfmclient openURL "%1";
    fi;
    In case anyone would need it.

    on (release) {
    getURL("
    http://www.frsind.com/specials.html",
    _self);

  • Open hyperlinks in html text using StageWebView instead of external browser

    My iPad app downloads xml data from a server and displays it as html text. The text may contain hyperlinks and currently these are correctly displayed as links in my app. However when I click on the link, it opens the link in an external browser.
    Any idea how I could instead open the links using StageWebView - I know how to open a link using StageWebView - the problem is intercepting whatever causes it to open in the external browser and instead use StageWebView.
    Thanks in advance

    Hi, John, welcome to Apple's user-to-user discussion forums.
    Does anyone here know of a way to open new windows without using command click in a tab?
    If you want links on a web page to open in a new tab, you need to command-click on them. This will work both for links set up to open in the same window and those set up to open in a new window. There is no setting in Preferences to make links on a web page automatically open in a new tab.
    There is a preference setting to open links from other programs, such as Mail, in a new tab. In Safari's Preferences, click on the General icon. Towards the bottom where it says "Open links from applications", check "in a new tab in the current window".

  • Open external browser in SAME window

    Hi all. I've seen several posts on a related issue here about how one could open up an external web browser to display content in the browser window. I tested the solution which uses a call to Runtime.getRuntime().exec(...) to execute a new Process and it works wonderfully. However, in my case, I would like to be able to reuse the same browser window if one is already open. In other words, I would like my application to only allow a single instance of the external browser to be open at any given time, and, if an instance exists, display the (potentially different) content in the existing browser window. Thanks for the help.

    write some JNI code that communicates with the browser, if the browser is actually known to you and provides the appropriate API.

  • View in external browser keeps opening new tabs

    Recently, in a failed effort to address the new version's inability to close successfully, I reset Firefox. I seem to have lost another valuable setting, and I can't remember how to recreate it.
    I use a peculiar, old html editor. When I ask it to "View in External Browser," naturally it opens Firefox. (I forget whether I created that setting or if it inherited it for me from my default in Windows.) In the past, if I asked to do so more than once, following further edits, it would open in the same tab, or rather in whatever tab was on top. Now, since my reset, it opens a new tab, and I can get a distressing number of them.
    What setting have I forgotten to change, presumably in Firefox itself or Tab Mix Plus? Thanks,

    As I say, I'm reluctant to change that about:config setting until I have to, since (1) it's not clear to me what it does and (2) I'm dead sure it's not an about:config setting I've ever had to touch before, so it couldn't possibly recreate my former behavior.
    Now: I went into Tools, Options, Tabs and made sure that Open Links That Open in a New Window read Current Tab. Still, it was getting weird: even Googling for a site and then clicking on the search find opened a new tab, as if I really want to keep the Google listing. I'm sure I'd never seen that before on multiple computers over the years. Have others? Truly weird what v29 with Reset has done.
    Next, I opened Tab Mix Plus Options and found I had the same option, weirdly enough, still set to New Tab, so I changed it. This stopped anything at all from opening in a new tab.
    Now, it's progress, but I'm sure my old browser behavior was more intuitive than that. Some things really did open a new tab, such as external links in Facebook posts. I know I can get that from right-clicking, but I didn't have to. Now I'm still confused as to how much Firefox has changed on me in the last three weeks and how much time it has taken to try to adjust it. I've never been clueless at the computer before.

  • ColdFusion Builder 2 can't open current file in external browser

    I can configure an external browser in CFB2.  However, either CFB ignores this (in the case of Opera) or it opens the project on the start page rather than the page I have open.  In some cases, e.g., FF, it loads Google.com. ernal browser in CFB2.
    Many people have posted about this problem.  Can someone at Adobe actually take the trouble to deal with it?  It makes CFB pretty much useless.

    I can configure an external browser in CFB2.  However, either CFB ignores this (in the case of Opera) or it opens the project on the start page rather than the page I have open.  In some cases, e.g., FF, it loads Google.com. ernal browser in CFB2.
    Many people have posted about this problem.  Can someone at Adobe actually take the trouble to deal with it?  It makes CFB pretty much useless.

  • Open the external URL in another tab of window browser

    Hi,
    I have create application to open the external URl into new window browser by using CREATE_EXTERNAL_WINDOW method. now how can i open this url into same window tab. is there any method that allow me to open this external URL into window tab.
    Thanks,
    Digamber.

    The open external window API doesn't support specifying "in another tab". That is completely browser specific! Some browsers don't even have tabbed browsing.[ I don't even think that even javascript has this functionality!|http://www.dynamicdrive.com/forums/archive/index.php/t-19843.html]
    You'll not be able to do this. Sorry.
    You might be able to change the browser configuration so that it defaults new windows into a new tab... But not through WD.
    Cheers,
    Chris

  • Open external browser from within Acrobat via API?

    My plugin can get the desired path/address, but I can't seem to figure out how to kick off the browser through the API.
    End goal is opening non-Acrobat file types (.xls, .doc) through an external browser.
    Is this possible?
    Using Acrobat SDK 7 and Visual Studio 2005.

    > "first embedded as dataObjects"... This sounds like it would not be reader-compatible, and that's another end-goal.
    It is if you have a LiveCycle Reader Extensions Server to extend the PDF.
    > But http:// links would work?
    Yes.
    > How do I launch a browser?
    Look up the app.launchURL method in the JS API Reference.

  • Opening an external url in the same browser

    Hi all,
    I need to open an external URL (for instance,www.google.com) from my WDA application by 'linktoaction' or 'button' event and this should be happen in the same parent window and not as a external window.
    Please suggest me steps with example codes to perform this.
    Regards,
    Dinesh

    Why use a linktoaction?  Just use a linkToURL.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm]
    You can use the target property to control how the link opens. 
    If you must use a button or linkToAction, the you will have to use an Exit Plug:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]

  • How can I stop Firefox from opening (to "File Not Found") when opening my Opera browser?

    Ever since I installed Opera 10.61 on my new computer (Windows 7 Ultimate operating system), whenever I open Opera, Firefox opens one second later with the following error message:
    '''File not found '''
    Firefox can't find the file at /C:/Users/Nasheed/AppData/Local/Opera/Opera/temporary_downloads/client-en.xml.
    * Check the file name for capitalization or other typing errors.
    * Check to see if the file was moved, renamed or deleted.
    TRY AGAIN.
    <nowiki>****************************************************</nowiki><br />
    This happens EVERY TIME I OPEN THE OPERA BROWSER. How can I stop this from happening? I'm stumped.
    [EXTRA INFO - I was unable to enable Firefox to access my previous profile on the new computer (despite putting the old profile in the appropriate Mozilla Firefox folder. So, there are now two profiles in that location.
    After reading the answer to another forum member's question, I attempted to resolve the problem using Profile Manager, but I was unable to locate the Profile Manager. The Windows "Search" feature is not enabled on my new computer (nor can it be enabled from the Customize Start Menu options).]

    Thank you for your response, Cor-el.
    I had Opera set as my default browser since this began happening. I changed my default browser back to Firefox mainly because having Firefox open one or two seconds every time I open Opera was/is such a nuisance.
    I believe this problem began because I attempted to manually transfer the files from my old computer to the new one (via the backed up files in my external drive). I was unfamiliar with Windows 7 when I did this. Microsoft changed the file set up from what I had been used to in Windows XP. I used XP for six years before being exposed to Windows 7 (I never had Vista).
    I'm almost sure this problem has something to do with where I placed the application data when I was trying to reestablish the program set up on the new computer.

  • File system notification if file is open by external application

    Hello!
    I have an application in which a certain temporary file is generated. This file is then loaded by an external web browser. When the browser finished loading the file, I want my application to delete the temporary file. Unfortunately my app is not notified correctly by the browser when loading is complete. I guess this is because the temporary file is not interpreted by the browser itself but by a browser plugin.
    So my plan to delete the file when the browser completes loading can't work. Thus I wonder if there is any way to get a file system notification when the file is opened by the browser plugin and when it is closed again.
    The whole thing should work for Windows XP. I've searched the whole day but couldn't find an appropriate solution. I search for something like the FileSystemWatcher in .NET. But I even don't know if Windows fires these events when files are opened or closed.
    It would be great if someone could help me although it seems to be very tricky.
    Thanks in advance,
    Robert

    This forum is about program development in C, C++, and Fortran,  and particularly about using Oracle Solaris Studio.
    Questions specific to Solaris are more likely to get a helpful answer in a Solaris forum. Start here:
    https://community.oracle.com/community/developer/english/server_%26_storage_systems/solaris

  • CL_GUI_HTML_VIEWER need to open a different Browser session if one exists

    Hi All,
    I'm using the class  cl_gui_html_viewer for displaying a PDF in My program. However, if an Internet Explorer Session is already open, the HTLM_VIEWER created in my program is behaving more like a child of the already open browser (In other words, it works like pressing CTRL+N on the original window). But my requirement is to open a new Browser session altogether (Like Opening up another Internet Explorer Session).
    The reason i need to have this is because the PDF i display is based on an authenticated login. If a person is already logged in through the Stand alone IE browser, my program should not allow the same user to view it in the browser but authenticate again by prompting for a login. This is achieved by using different Browser sessions (not by CTRL+N).
    Please let me know if you have any thoughts on achieving this.
    Thanks in advance,
    Jr.

    where is this PDf coming from, is it from external source thru a url? can you pass uid/pwd to this PDF via url,
    if yes, pass a wrong uid/pwd thru the url , every time you load the pdf, in the html viewer control, this would always prompt for authntication box. other option is to delete the sso2 cookie,  you need to find a method to delete the cookie in your local machine created by calling this pdf from standalone browser.
    Raja

  • Opening applications externally in luakit via vimperatoresque "follow"

    Hey guys,
    I wanted a lightweight browser and after trying many (midori, xombrero, qupzilla, jumanji, dillo), I settled on luakit (+ privoxy). I use my keyboard for most tasks, so it's no surprise that my loyalties are towards awesome and, henceforth, the equally customizable and vimperator-inspired luakit! Vim is my favorite text editor, so getting my luakit experience to seamlessly blend with the rest of my work is one of my priorities.
    This is hardly an original contribution, but I thought it would be useful for anybody new to luakit and facing the same problem I was. I searched online but wasn't able to find an effective way to open files externally (videos, pictures and pdfs) apart from this, but it requires using the mouse, which to me, feels a bit awkward.
    luakit fortunately has key-bindings borrowed from vimperator that allow users to "follow" links. Usually 'F' and 'Shift+F' serve most purposes (these open a link in the current tab and a new tab respectivey). Similar functionality can be achived using the ';' key followed by another key to "do things" with the selected link. For example, following ';' with say 'Y' allows users to yank urls. Following ';' with 'O' opens the link in the current tab.
    My idea was to connect ';' with another key, say 'd', to instruct luakit to use external applications to open the selected link. Adding the following to the end of your 'binds.lua' achieves just this:
    add_binds("ex-follow", {
    -- Yank element uri to open in an external application
    key({}, "d", [[Hint all links (as defined by the `follow.selectors.uri`
    selector) and set the primary selection to the matched elements URI,
    so that an external app can open it]],
    function (w)
    w:set_mode("follow", {
    prompt = "video", selector = "uri", evaluator = "uri",
    func = function (uri)
    assert(type(uri) == "string")
    uri = string.gsub(uri, " ", "%%20")
    luakit.selection.primary = uri
    if string.match(uri, "youtube") then
    luakit.spawn(string.format("mpv %s", uri))
    w:notify("trying to play file on mpv " .. uri)
    elseif string.match(uri, "vimeo") then
    luakit.spawn(string.format("mpv %s", uri))
    w:notify("trying to play file on mpv " .. uri)
    elseif string.match(uri, "vine") then
    luakit.spawn(string.format("mpv %s", uri))
    w:notify("trying to play file on mpv " .. uri)
    elseif string.match(uri, "pdf" or "PDF") then
    luakit.spawn(string.format("~/.config/scripts/pdfFromURL %s", uri))
    w:notify("trying to read file via zathura ")
    elseif string.match(uri, "jpg") then
    luakit.spawn(string.format("feh -x %s", uri))
    w:notify("file contains jpg " )
    else
    luakit.spawn(string.format("feh -x %s.jpg", uri))
    w:notify("no jpg extension | unrecognized")
    end
    end
    end),
    Adding this allows you to use the follow mode with keystrokes ';' and 'd' and once a selection is made, it opens one of the above mentioned external applications. For instance, youtube,vimeo and vine links are opened via mpv (which is a sweet-sweet video player; this also does away with the requirement to use flash for most videos and the prayers for a html5 video to play!). PDFs are opened via zathura. Now, zathura cannot open http links automatically, so the file needs to be downloaded to some temporary location and then opened by zathura. I've written this routine in a small script called pdfFromURL, which can be saved where ever you wish (I've saved it in ~/.config/scripts). This is pdfFromURL:
    url=$1
    file="${url##*/}"
    echo $file
    case "$file" in
    *\%20* )
    urxvtc -e aria2c --allow-overwrite=true -d /var/tmp $url -o lousy_file_name_that_had_spaces.pdf
    zathura /var/tmp/lousy_file_name_that_had_spaces.pdf
    # echo "found a damned space in file name!"
    urxvtc -e aria2c --allow-overwrite=true -d /var/tmp $url
    zathura /var/tmp/$file
    esac
    The above script uses aria2c, zathura and urxvtc. This can be modified as per your requirements.
    The picture opening really isn't necessary, but is kind of useful for sites like reddit.
    luakit is a really cool browser for being so accessible to costumization (I've never written a single line of lua code previously)!
    I hope this post helps at least one other person.
    Cheers!
    Last edited by cable (2015-05-14 21:46:29)

    Hi Bharath,
    check this
    http://help.sap.com/saphelp_nw04/helpdata/en/8e/adc93f4d903b1ce10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b8/437d46d4451e4c9ab756e272a1581d/frameset.htm
    Regards,
    Ignacio.

  • I am also looking to get whether or not the document is open in a browser window which can be done with event

    I am also looking to get whether or not the document is open in a browser window which can be done with event.target.external, but I want it to happen without any user interaction and all the events that I tried while loading the document cause an error. I also tried xfa.host.name, but it always returns "Acrobat" whether the doc is in Reader or the browser, so I guess that is not it. If I put the call to event.target.external in a button, it works (I guess those libraries might not be initialized yet, they are legacy, but I don't know if there is an event that happens on load after that lib is initialized).

    // Check the document URL to determine if the form is open in the browser (online) or not (offline)
    var MyDoc = event.target;
    var MyURL = MyDoc.URL;
    if ((MyURL.indexOf("http:") >=0) || (MyURL.indexOf(".tmp") >= 0))
    ONLINE_STATUS_SAVE.rawValue = "ONLINE";
    else
    ONLINE_STATUS_SAVE.rawValue = "OFFLINE";

Maybe you are looking for

  • IPhoto 6 transfer to iPhoto 09

    I am shifting my iPhoto 6 photos from my Power Mac G5 onto a new iMac with iPhoto 09. I did this by putting my iPhoto 6 library onto an external drive, and then importing the library into my new iMac with iPhoto 09. Seems to have gone OK, but the iPh

  • LoginModule doesn't work in Glassfish

    Some months ago I developed a LoginModule to a WebApplication and now I had to do the same, but it is not working. Have I forgotten something? I am using Glasshfish 2.1. This is my Realm class: public class MyRealm extends AppservRealm {      private

  • The /3GB doesn't work for me

    Hi All, I am using MSI 925XE Neo Platinum Edition. I know that this motherboard can cater up to 4GB of 533/400. I am using Windows XP Service Pack 3. Problem is I have this 4 x 1GB 667. Using Everest and Crucial Memory Scanner, they detected that I h

  • Ringtones and Old iTunes Account Name

    I tried to create a ringtone from a song I purchased when my account was a former email address. I could not purchase the ringtone with the email address my iTunes account now has as the account name. When I "get info" on the song I see the old email

  • ARD ...asset tracking and management

    Why doesn't ARD have automated asset tracking? I administrate a small company with a WAN based over 4 sites and ARD 2.2 does us very well for most aspects of IT management..it falls down on asset management. Does anyone know of a good reasonably pric