Opening weblink in OS (lil complex one)

Is there a way to find if a link is already running in the OS(Windows or Linux or watever on which i run the program)?
My requirement is quite diff. Consider IE for example. If the same url is requested to be opened from the user i need to first check if theres a IE window already for this link. if not a new one has to be launched else same window should be brought to focus.
The client i am using is Swing. Currently i am using Runtime.exec() to launch the web browser every time it is required. But it opens a new browser (or a new tab in newer versions of IE) to launch the link.
But i need to first check if theres a IE window already opened with the same link. If no i need to continue launching a new browser else i should bring up the already open IE window with the same link, to focus.
I studied from some where that using Socket connection to the OS itself this can be achieved but nothing was specified on how it could be done so.
Edited by: shrirama on Oct 15, 2008 10:17 PM

shrirama wrote:
Is there a way to find if a link is already running in the OS(Windows or Linux or watever on which i run the program)?Not natively in Java.
Whatever solution you find, if one even exists and that's at the very least highly questionable, it will be both platform and browser dependent
You need to think of a better way to do this. I would start by dropping the Runtime.exec bit which is totally unneccessary.

Similar Messages

  • POWL OBN links do not open a pop up window in one domain

    Hi
    I am hoping to get some helpful information on a problem with a POWL OBN links not opening a pop-up only in one domain. The issue is described below.
    We have deployed the BP for Buyer 1.0, SP15. One of the iViews we use is the My Purchasing Documents and we have enabled the query POWL_PR_MY. Our Portal Version is 7.0 SP21, ECC6 (no EHP).
    Query POWL_PR_MY (My Purchase Requisitions) of POWL Application OPS-BUYER-POWL-PURDOC has links with the Purchase Requisition Number. Ideally when the links are clicked on, it should open up the Purchase Requisition transaction with the details of the item. This does not happen in our case.
    Our Portal Server is on the domain main.nex.com, but is accessed from the domain drs.nex.com. The ECC is also on the main.nex.com domain.
    When we access this application using "portal.main.nex.com", the links work fine as they should. But when we access the application using "portal.drs.nex.com", they do not open at all. There is no error message displayed. It just simply does not do anything.
    We have added *.main.nex.com to our local intranet trusted sites and have enabled pop-ups, added the proxy exception
    *.main.nex.com. All the Pop-ups are working from the other Custom Webdynpro application and from the other SAP GUI for HTML transactions in the portal from domain "drs.nex.com".
    I am not sure what the problem is, but we are facing a problem ONLY with this application's links. I am not able to see anything in the nwa logs too.
    Any pointers as to where I can look for issues?
    Thanks
    OJ

    Hi Malte
    No luck yet - so we are currently using portal.main.nex.com to access our portal until we find a solution. Will keep you posted. In the meanwhile, if you do find some information, please update.
    Thanks
    OJ

  • Whenever i start my ipad2 the applications automatically starts to open and close automatically jumps from one screen to another

    Whenever i start my ipad2 the applications automatically starts to open and close automatically jumps from one screen to another cannot operate the ipad at all, tried switching off and back on again, also restored the ipad but of no use

    try restart
    http://support.apple.com/kb/HT1430

  • Why does closing all open windows (15) and leaving only one drop ram usage from 1.5 to 1.4Gb and not more.

    Why does closing all open windows (15) and leaving only one drop ram usage by only 100mb from 1.5 to 1.4Gb.
    What is in this 1.4 gb ?
    I don't care much about ram, It's just that cpu usage spike like crazy by the end.
    ''Edited to remove swearing - TonyE''

    Hi musicfan,<br />Sorry you are having problems with Firefox. Maybe you should have asked earlier and we could have fixed it.
    Reading your comments I do not see that rolling back to an insecure Firefox 22 will actually help you much. You are probably best using IE, unless you have also damaged that.
    *[[Export bookmarks to Internet Explorer]]
    You should not use old versions they are insecure. Security fixes are publicised and exploitable.
    * [[Install an older version of Firefox]]
    * https://www.mozilla.org/security/known-vulnerabilities/firefox.html
    Most others will not be having such problems. We are now able to say that with confidence because after developers missed a regression in Firefox 4 telemetry was introduced so that data was obtained. It may be an idea to turn on your telemetry, if you have not already done so, and decide to stick with Firefox.
    *[[Send performance data to Mozilla to help improve Firefox]]
    Trying safe mode takes seconds. Unfortunatly if you are not willing to do even rudimentary troubleshooting there is not anything we can do to help you.
    *[[Troubleshoot Firefox issues using Safe Mode]]

  • Can you open itunes in 2 windows?  One for your music and 1 for Itunes store

    I want to open iTunes in 2 windows.  One showing my current music and one showing the iTunes store.  Sometimes I will accidentally download a song that I already have.

    The option to open in a new window seems to have disappeared in the latest iTunes.
    You could leave feedback for Apple about it via the help menu.

  • How to open a pdf file only in one computer

    I would like to sell pdf publications by allowing  the user to open them only in one computer. I learnt that this has been done  the past when I bought  some publications but I don't know the way to do it. Could you help me?
    thank you
    Marco

    thank you for your support
    Best Regards
    Marco
    Da:     Mylenium <[email protected]>
    Per:    MARCO1 <[email protected]>,
    Data:   09/10/2013 11:09
    Oggetto:        How to open a pdf
    file only in one computer
    Re: How to open a pdf file only in one computer
    created by Mylenium in Downloading, Installing, Setting Up - View the full
    discussion
    You will havwe to sign up for some service that supports rights
    management, use protected PDFs via LiveCyle/ Acrobat Connect or learn how
    to create your own ePub stuff using Digital Publishing Suite. In any case,
    it will probably cost you money upfront before you make any revenue.
    Mylenium
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in
    the forum to embed the image at
    http://forums.adobe.com/message/5746873#5746873
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/5746873#5746873]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/5746873#5746873]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up at Adobe
    Community
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.
    Il messaggio trasmesso può contenere informazioni di carattere
    confidenziale rivolte esclusivamente al destinatario. Ne è vietato l'uso,
    la diffusione, la distribuzione o la riproduzione da parte di altre
    persone e/o entità diverse da quelle specificate. Nel caso aveste ricevuto
    questo messaggio per errore, siete pregati di segnalarlo immediatamente al
    mittente e cancellare quanto ricevuto.
    This electronic mail transmission may contain confidential information
    addressed only to the person(s) named. Any use, distribution, copying or
    disclosure by any other person and/or entities other than the intended
    recipient is prohibited. If you received this transmission in error,
    please inform the sender immediately and delete the material

  • Every time I open a second document the 1st one slides off the screen and I have to reopen everything.  I want to view more than 1 document at the same time.

    How can I view and work on more than one document at a time?  I've never had a problem with this but suddenly every time I open a new document the 1st one slides over out of sight.  How do I get that to stop?

    Hi bbd,
    Here is a screen shot of two documents open side by side. Drag the first document to the left of the screen. Open another document and drag it to the right of the screen.
    I have not had an open document slide from view. Puzzling!
    Regards,
    Ian.

  • Opening  the same form more then one time in the same session

    H! I want to accomplish the following .... I have a form that has a button. The code in the when-buttin-pressed trigger is a call_form - to open another form. I want to be able to push this button as many times as the user may want and the form should keep opening a new form. Meaning I can have 10 forms of the second form open if I want. The user basically wants to be able to flip between the data on the same form opening up this form a couple of times in different windows. when I use the call form the button on the initial form is becoming disabled - not allowing me to push it again to open another form without closing the one already open. Please HELP!

    Sounds like you need Run_product rather than Call_form.
    It will establish multiple database sessions, and the user will be responsible for terminating them. And I am not sure, but this may only be possible in client/server forms.

  • Can't open any applications in CS5 once one has closed without uninstalling and reinstalling

    I have had CS5 Design Premium installed on my iMac for a little over a year. I got the graphics card replaced roughly two weeks ago and since then have had problems with CS5. None of the CS5 programs would open when I got the graphics card fixed so I uninstalled and reinstalled the entire suite from the disc. All the programs worked fine until I closed one down. Once I close a program and try to open another or reopen the same one I get the agreement page up. I click accept and it just keeps putting the agreement up again to accept. I have to uninstall and reinstall the entire suite again from disc in order to use any of the programs! Can someone please help? This is driving me crazy!!!

    Hello,
    Well, your Mac's situation sounds pretty vague. So, I'd recommend a little general troubleshooting, starting with verifying and possibly repairing your "Home" hard-disk volume.
    This will explain how it's done http://docs.info.apple.com/article.html?artnum=106214
    Follow the six-part process under "Try Disk Utility."
    You can also run alot of system opimization tools with this free and nifty program called Onyx http://www.apple.com/downloads/macosx/systemdiskutilities/onyx.html

  • Why, when I open a website, do I get one or more unwanted websites opening, and how do I stop it. Samsung laptop, Windows 8.1, in South Korea.

    I bought the laptop here in South Korea, every time that I open a website I get another one or more websites opening up that I do not want. How can I stop this.

    *You can start Firefox with every addon turned off by click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    If you don't have problem in safe mode, restart Firefox and uninstall every addon you don't need. To learn how to do it read [[Disable or remove Add-ons]]

  • HT201441 i forget the id and all things and i need to open my phone as a new one

    i forget the id and all things and i need to open my phone as a new one
    <Personal Information Edited by Host>

    Are you also having trouble with Find My iPhone Activation Lock? If so, you cannot bypass it. You will need Apple ID and password used to activate the iPhone originally. You can try this if you have forgotten: https://iforgot.apple.com/password/verify/appleid

  • How to open multiple sql files in only one ssms instance

    how to open multiple sql files in only one ssms instance, I can't get anything to work that I find online..I hope you can help us.

    I tried opening two files but selecting and hitting enter. it opens one SSMS and two tabs.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Firefox opens in new window under current one

    whenever I right-click on a link and select to open in a new window, the resulting new window always disappears under the current one. I am finding this to be rather annoying as I am used to the window opening in front of the previous one, meaning I didn't have to go chasing it in the taskbar icons.
    I can't say for sure when it started happening, but I'm thinking since a previous update.
    I have had a look under options, but can't find anything relating to it.
    how do I fix this annoyance?

    Surebrec,
    '''Update:''' I found this, which you might want to try out before continuing reading: http://www.techsupportalert.com/content/how-stop-firefox-stealing-window-focus.htm
    Basically that would mean the reverse for you.
    If that didn't work:
    Does this problem appear without you having many applications running at the same time and/or if you have pinned a lot of applications to your Taskbar in Wondows 7?
    Some users have reported that this problem manifests itself if the row of icons in the Taskbar simply can't make room for any icons expanding (i.e. new windows in for instance Mozilla Firefox or Internet Explorer).
    If so, you might want to take a look at: http://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems

  • Prior to upgrading to 9.5, I used to be able to open several different PDF's in one Adobe Reader.  Each document would have it's own tab across the toolbar.  Now I don't have that open.  Instead, I have multiple Adobe Readers open at the bottom of my scre

    Prior to upgrading to 9.5, I used to be able to open several different PDF's in one Adobe Reader.  Each document would have it's own tab across the toolbar.  Now I don't have that open.  Instead, I have multiple Adobe Readers open at the bottom of my screen.  Any suggestions on how to change that?  Thanks!

    Not possible with the actual versions of Adobe Reader.

  • Ok so I have OS X Lion now and this is what I get:  "You can't open the application Lexmark All In One Center because PowerPC applications are no longer supported."

    ok so I have OS X Lion now and this is what I get:
    "You can't open the application Lexmark All In One Center because PowerPC applications are no longer supported."

    look for the latest drivers on the maker's website.
    check it in your list. this is a lexmark issue not a lion issue.
    http://support.lexmark.com/index?page=content&id=OS22&locale=EN&userlocale=EN_US

Maybe you are looking for

  • My Ipod 4th Gen will not mount into Itunes

    Please anyone with technical knowledge HELP ME. The basic problem is that my 4th Generation Ipod will not mount into Itunes. Let me tell you what I have done so far this includes all the R's, I have also followed the advice of reinstalling itunes and

  • LOAD_COMMON_PART Error in ME2M, ME2N, Transactions

    Hello, I have created one implicit enhancement in Include FM06LCS4 to add MRP Controller Field on the selection screen of ME2L. But after moving the changes into production, run time error LOAD_COMMON_PART is coming. It is not coming for ME2L but for

  • Lightroom as external editor

    Is there a way to teach iPhoto (09) to use Lightroom (2) as an external editor? Regards, Börries

  • Ethernet cable not connected?!

    Hello I have been using a wireless router for some time. Last night I decided to plug in the ethernet cable and my mac shows that the "ethernet cable is unplugged". I have tried multiple cables with my mac connected directly to the cable modem and th

  • Sockets: setSoTimeout() not working with Scanner

    I'm implementing the timeout feature for a server, and I've run into a problem. My server reads from the socket input stream using a Scanner, and I've set the socket timeout using Socket's setSoTimeout() method. This is supposed to throw a SocketTime