How can we lauch browser from my application?

hello all,
i tried
Runtime.getRuntime().exec("cmd /c start http://www.sun.com");
to launch my default browser (IE) on NT4 system,
but nothing happened...
when i tried Runtime.getRuntime().exec("iexplore.exe")
i got
java.io.IOException: CreateProcess: iexplore.exe error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Compiled Code)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Compiled Code)
at java.lang.Runtime.exec(Compiled Code)
at java.lang.Runtime.exec(Runtime.java:152)
at Launch.main(Launch.java:6)
i tried Runtime.getRuntime().exec("start http://www.sun.com") eventhough it is meant for win95..
thanks in advance...
Regards
Sojan

hi,
when i tried as
Runtime.getRuntime().exec("start http://www.yahoo.com");
[ i heard that this is for win95 ]
i got the following exception.. i'm using WinNT-4 and IE5.0 ,
java.io.IOException: CreateProcess: start http://www.yahoo.com error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:64)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:272)
at java.lang.Runtime.exec(Runtime.java:195)
at java.lang.Runtime.exec(Runtime.java:152)
at LaunchBrowser.main(LaunchBrowser.java:6)
can anyone suggest a method which works on NT?

Similar Messages

  • How can I send audio from an application to the HDMI port on my Mac Mini while also sending the audio to another application?

    I am trying to use VLC (or any streaming audio player) and listen to a web radio station while at the same time using Audacity to monitor the CODEC's digital level.  I want to make a digital measurement of the level that the streaming radio station is using on the air.  I can calibrate the levels for maxbit by overdriving my web stations encoder and watching for clipping distortion on the decode on Audacity (waveform view).  I then calibrate the clipped value to the 0dB peak on Audacity's meters or waveform view.  I also am trying to calibrate and use the free Orban Loudness meter.  I require something like Soundflower (as others have indicated) but I find that sound flower is very unstable (or maybe mis-configured on my machine with Lion).   I think there is a clock drift issue since Soundflower works well for some number of minutes and then distortion appears in one of the outputs (either the HDMI or the feed to Audacity/Orban Loudness Meter).  I would have thought this was easy on a Mac, but as it turns out it is not.  Am I missing something here and there is a way to send audio from one application to my HDMI output and another application?

    Thanks Rudegar for the response. I was already afraid that Apple TV won't be of any help.
    Is there no solution for getting an audio-stream into the "airplay-system", e.g. by using another apple device?

  • How to close the browser from webdynpro application

    Hi All,
    I need  to implement the closing the browser where the webdynpro  application running by click on some button in that application.
    Can any body tell me how to implement that.
    Regards
    Vijay

    Hi,
    I resolved as follows(WebDynpro7.3) :
    1.- Create a plug in the "Window" with the name "Exit" and parameter "closeWindow" the type Boolean, after edit it and put type Exit.
    2.-Repeat the same but in the "Interface".
    3.-Place the following code in the action:
      IWDWindowController iwdWindowController =wdControllerAPI.getWindowController();
      IWDWindowInfo windowInfo=iwdWindowController.getWindowInfo();
      IWDOutboundPlugInfo  iwdOutboundPlugInfo=windowInfo.findInOutboundPlugs("Exit");
      iwdWindowController.firePlug(iwdOutboundPlugInfo, new HashMap(){{put("closeWindow",true);}});
    regards.
    JCARMONA

  • How to invoke a browser from an Application button  with a specified URL

    Hi
    I am trying to invoke a browser by clicking a button on my Application .I want the browser to come up with the URL I decide before i click on the button.
    To invoke the browser i am using the Runtime class. and then using the Runtime.exec() method .
    But thats only half the solution.(Loading a specific URL decided at runtime is a problem)
    Is there a way out ??
    Thanks
    Pranav

    Hi there,
    You have already reach to solution, just specify parameter as your URL to iexplore.exe in Runtime.exec() command.
    Like if you running from command prompt , it will look like something below
    C:>directory where iexplore is>iexplore java.sun.com
    for java Runtime.exec("iexplore.exe","java.sun.com");
    hope it will help you out,
    Dhwanit Shah

  • How can I launch configurator from host application in a specefic language.

    Hi,
    I want to access R12 configurator from a host application and I have no problems accessing it.
    But I want that the configurator should Launch in Japanese Language. Can I specify any XML parameter to the UIServlet to achieve this or is there any other Method?
    Thanks

    Per the "Deploying a User Interface that Supports MLS" section in Chapter 14 ("Multiple Language Support") of the Oracle Configurator Implementation Guide:
    "When a host application launches Oracle Configurator to configure an item, the language specified in the database ICX session ticket is passed to Oracle Configurator.  Oracle Configurator uses this information to determine which translated text to retrieve from the database and display in the UI."
    So essentially, Configurator will display the same language that the hosting application is displaying, the language the user has logged into EBS with.  (Of course, translated text will only appear in Configurator if you have supplied translations in the CZ_LOCALIZED_TEXTS table.)  If you need Configurator to display a different language than its hosting application, that would require a customization of the initialization string the hosting application sends to Configurator, specifying a different icx_session_ticket parameter value.
    Hope this helps.
    Eogan

  • How can I know programmatically from my app, safari or any other browser application browse which url on iPhone?

    How can I know programmatically from my app that safari Native application or other browser application currently hit which URL.I want to know Currently which URL hit on browser in my app (in Background / Foreground).
    Please give me your valuable responce.
    Thanks in advance.

    Not possible.

  • 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.

  • Hi i  insttalled the free trial 3O days MacScan on OsX10.5 is it normal that for full scaning it takes so long time more even than one day?! on the other hand this application hasn't any uninstaller on image disc ,so how can i uninstal it from my hard?

    Hi i  insttalled the free trial 3O days MacScan on OsX10.5 is it normal that for full scaning it takes so long time more even than one day?! on the other hand this application hasn't any uninstaller on image disc ,so how can i uninstal it from my hard?Thanks

    Get rid of the tracking cookies. They are used to profile and track your browsing history. While they are privacy invading, by calling them spyware, MacScan is being a little dramatic in trying to sell you its crap. And in the future, for whatever browser you use, don't allow third-party cookies.
    To prevent tracking, get Ghostery. In addition to having Ghostery and forbidding third-party cookies, I clear out all cookies from one browsing session to another. If you always do that, you won't have any tracking cookies to worry about, so you won't need MacScan to find them for you. Btw, MacScan finds the tracking cookies in the first few minutes of scanning; if you want to use it for that, then that's all the time you need to run it for. But, as I said, you won't have any tracking cookies around if you just remove all cookies and don't allow third-party cookies. As soon as you visit a site that needs them, you'll just get new ones. No problem.
    Read all about cookies here.
    http://en.wikipedia.org/wiki/HTTP_cookie

  • : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    : how can I import mp3s from my gmail account into my iTunes application so that I can import audio for recording into GarageBand ?

    Save the file from Gmail onto your computer and add it to iTunes.  How you save from Gmail is a Gmail question (their own support pages), not an iTunes question.

  • Wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    I wanted to put a file via a drag and drop into applications on my finder sidebar.  it missed and landed in the sidebar itself.  i can not remove it.  i can not even highlight it.  how can i remove it from the sidebar.

    Try holding down the Command key and dragging the file well off the sidebar.
    Hope this helps.

  • How can I delete icons from the desktop? every time I open a application (e.g. skype) the icon goes to the desktop

    how can I delete icons from the desktop? every time I open a application (e.g. skype) the icon goes to the desktop

    to remove the HD icon
    In Finder's Preferences pane, in the General tab, uncheck "Hard disks" under "Show these items on the Desktop" to clear away the icon.

  • HT5100 How can I transfer files from iTunens U on my computer to my iTunes U application on iPhone

    How can I transfer files from iTunens U on my computer to my iTunes U application on iPhone

    Hi emelihor,
    Welcome to the Support Communities!
    iTunes U is one of the items you can sync with your computer using the iTunes application.
    Click on the link below to see details and screen shots.
    iOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    I hope this information helps ....
    Have a great day!
    - Judy

  • How can I get back into my application aftermath invoking Start up page of index.htm ?

    Gorgeous Hello All,
    If anyone of you can please provide me a solution for the following, will help me in plentious and galore.
    Am using Adobe RoboHelp, Version 10 and IE version being 10.
    A hurdle :-
    I have a application which has been developed in ASP .NET, Version 4.0. Help link has been created in this application wherein here the Start up page of index.htm has been linked to be read from the RoboHelp local project folder\!SSL!\Multiscreen_HTML5\desktop. All are working absolutely fine except when
    I login into the above-said application -> click on the Help page -> the index.htm opens with Contents, Index, Glossary -> Am able to successfully perform any task by respective clickings
    -> But I am not able to get back into my application when I click on the IE provided Back button (Alt+Left) -> Any amount of invoking Back button makes the system getting looped into this Start up page of index.htm only -> When I Close Tab (Ctrl + W) or Close ( X ) -> The window session gets closed and I have to repeat all by relogin once again.
    How can I get back into my application aftermath invoking Start up page of index.htm ?
    (I can always get back into the application easily by erasing those parts in the url which refers to this RoboHelp linkages – but this certainly looks non-polished work)
    Help Please
    Cheese – Vipin Nambiar, Bangalore

    Hey Jeff, I used Internet Explorer 10.0.9200 and Google Chrome 26.0.1410. Alas - it is the same behavior.
    (But Jeff : When I used Microsoft HTML Help as primary layout to generate chm file , My Help when launched from my Application opened in a new browser window and when I closed this Help browser window did not close my application. Looks like need to write few liner code to get this issue settled )
    Thanks Indeed of lots for your concerns Jeff !!!

  • How can we handle browser settings while dealing with the security ?

    Hi ,
    how can we handle browser settings while dealing with the security ?When we configured security in web.xml , during the first request the container is asking for the authentication credentials once they are provided it go's on. but when the user gives a fresh request from the second window within the same browser that time it is not asking for authentication. How can we overcome this.Is there anything to do with server configurations?
    How can we make the container no to keep the things or act like session?

    Ya... I am taking a small example need not happen always but a kind of possibility i am thinking off.
    once the user sign out and just left without closing the browser and a friend (suppose not a good friend ... just kidding...) of that user may open the same jsp or file .This time the security is breached. If that feature or property exists....
    I know what you might say ... the user will log-out before leaving where a programer might invalidate the session at the time of log out.
    Consider the case of a bad Programing or just a programer might forget to invalidate,At that time as a application administrator how can he solve that issue.
    Thanks.......
    Edited by: user8483670 on Jun 6, 2011 1:08 AM
    Edited by: user8483670 on Jun 6, 2011 1:09 AM

  • How do i  open browser in java application

    hi....
    please help me!!!!!!!!!!!!!!!!!!!!!!!!!!
    how do i open browser in java application ? ( for show javascript in java application)
    thank you.......

    You can run any program from java by doing
    Runtime.getRuntime().exec("mybrowser myjavascriptfile.js");
    The real question is why would you want to.
    I would suggest you rethink whether running Javascript from Java is a good idea.

Maybe you are looking for

  • Text editor in Score module agonizingly clunky!  Fix?

    When creating scores from midi regions, the text editor drives me nuts when adding lyrics: The word/character positioning is different between text edit/create mode and what appears on the screen after editing, and different again between that and wh

  • Help on an Efficient Way for Implementing Production Tables Modifications?

    Hey Y'all SQL Gurus, We have two tables (I would call Tab1 and Tab2 here). Tab1 contains social security number(SS#) and Emp_ID information while Tab2 has only SS#. Tab2 is a large table containing about 600k rows, and there is no primary key. Table1

  • I can not download Adobe Flash CS3 trial

    Adobe said that the download link are broken? and give my this side. My computer are Windows 7 Internet Explorer 9 64 bites Intel Core IE3 Norton 360 PE ver 6 My computer ar only 6 months old. I need help from You, I want just the modell flash CS3 be

  • Send a Single Message to a Client

    What is the best way to send a single message from the server to a client using flex/blazeds? The one caveat is that the message could take several minutes before it is sent. Think of a long calculation that is done on the server that the client wait

  • How to recover an email in Outlook

    send an e-mail in Microsoft Outlook 10 and want it back.