Open web browser

I am very very new to Java. I was wondering if there was a way that you could ask a user for a web address and then java would launch it.
Could you pls post some sample code thanks

well jmcall10, you can start any program using Runtime system object, and if you use windows how os, then iexplore can recive parameters like that:
iexplore http://java.sun.com
typing that in a command window.
then, you can try with the next code:
public class Main{
public static void main(String args[]){
try{
Runtime run = Runtime.getRuntime();
Process pro = run.exec("iexplore http://java.sun.com");
//Here appers a explorer window tring to connect jaav web
//you can answer some things about that process like
System.out.println("exit:" + pro.exitValue());
}catch(Exception e){
e.printStackTrace();
}

Similar Messages

  • How to open web browser from midlet on emulator

    Hi,
    I am using Java ME Platform 3.0 SDK. I want to open web browser on emulator.
    What should I do?
    Thanks.

    Hi,
    web browser is not a part of the emulator. The first think you have to do is to download mobile web browser. If you have mobile web browser downloaded go to Java ME SDK 3.0. There is Device Selector window in the bottom left corner. In this window you can see all emulators available in Java ME SDK 3.0. Choose an emulator you want to use and right click on it. In popup menu select "Run JAR or JAD..." action, in file chooser browse you mobile web browser and open it. That's all.

  • MBA not opening web browser after WiFi connection

    MBA not opening web browser after WiFi connection.  Browser (Safari) starts and stalls frequently.  My MacBook Pro whoks fine on my same WiFi using Airport Extreme.  any suggestions?

    Hello,
    The closest Microsoft forum would be the
    Windows 7 forum on Microsoft Community.
    However, this is not a Microsoft product, so I'd ask on
    http://help.ask.com/link/portal/30015/30018/ArticleFolder/9/Ask-com-Q-A-Community
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog:http://unlockpowershell.wordpress.com
    My Book:Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Open web browser from java application to specific page

    Hi,
    I used the code from http://www.javaworld.com/javaworld/javatips/jw-javatip66.html to open a web browser to a specific URL. That worked great! However, I run into a problem if the URL targets a specific page, for example, "http://www.yahoo.com/news.html" would give me an problem with the shortcut problem. Any ideas how to get around that?
    The command rundll32 url.dll,FileProtocolHandler http://www.yahoo.com/news/ would work fine, except anything ends with .htm or .html.
    Thanks,
    David

    It looks like url.dll doesnt like .htm or .html files. For more info look here: http://www.jsiinc.com/SUBI/tip4100/rh4162.htm
    For some reason it is confused by the 'm' character in .html which is odd considering it has no problems with .com
    So if you want to keep using url.dll, do something like this:
    replace ".htm" with ".ht%6D"

  • Can't open web browser in solaris 10

    I'm on the java desktop for solaris. I click on the browser it acts like it is going to open and then nothing happens. Is there something else I need to set up.
    Thanks In Advance
    aslaton

    Right click on the Web Browser launcher and check the Properties for the launcher. Make sure what ever command is set to run exists on the filesystem (I believe it's set to /usr/sfw/bin/mozilla by default). Also, you can try running whatever command is set in the launcher from a terminal window, this way you should see if there is any error reported back.

  • Why does email hypertext in PDF open web browser window in addition to email client?

    Using FrameMaker 10, I created the following hypertext: message URL mailto:[email protected] I then printed to PDF. When I click the link in the PDF it opens an email client message window (what I want) but also opens a web browser window with mailto:[email protected] in the address bar (what I don't want). Why would it open both? I don't know if this is a Frame issue (more likely), an Acrobat issue (less likely), or a browser issue (not likely). I hope I'm just missing something easy here.

    Should have given the following info earlier...running Win 7 64-bit with Outlook 2010 and Acrobat X Pro. That being said the path to verify "mailto" is different but it is set up fine. Same with Acrobat X Pro...settings are fine.
    Also, in reply to Harry28586 this is happening with Firefox, not IE (I should have mentioned that as well).
    I've found plenty of threads searching online regarding issues with email links in Acrobat on Win 7 machines with Outlook...many suggest editing the registry. I have no problem doing that but this is a work laptop and we have a don't-fix-it-yourself policy. So I'll keep looking. Thanks for all the suggestions.

  • Open web browser but can't click

    I open my web browser to home page but nothing happens when I click on links or buttons.
    SImilar to a mouse that isn't connected or recognized.

    Turning blue would indicate that your device does recognize it as a hyperlink.
    You do have a BlackBerry Data Plan on your account... you do have a working browser on your device?
    Can you use the browser to open a site?
    My first suggestion is With the BlackBerry device powered ON, remove the battery a few seconds and then reinsert the battery to reboot.
    Then try it again.
    Message Edited by JSanders on 04-22-2009 10:16 AM
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • 6120 classic unable to open web browser

    I am having a problem with using my 6120 to browse the internet. I have been browsing the web on the phone and also used the phone as a modem without any problems thus far - however I was browsing on the phone last night and the phone kept running out of memory, with it freezing and me having to reset it several times.
    After about the 3rd time of having to reset it, I was unable to open the web browsing program or anything associated with it i.e. Download, etc. When I try to open the web browser it flashes on the screen for a fraction of a second and then exits immediately.
    I have tried formatting my memory card and resetting to factory settings - nothing has worked so far. Everything else on the phone is working fine. Is there some other kind of reset I can do? Or does anyone know of a way to fix this problem?

    There are three things to reset
    1) Restore factory settings
    Go to
    Menu > Settings > Phone Settings > General > Factory Settings
    If prompted for security code, enter 12345 (default code unless changed)
    2) Format Memory Card
    Go to
    Menu > Settings > Data Manager > Memory
    Select options, and then select Format Memory Card
    3) Format Phone Memory
    While in standby mode, type
    *#7370#
    If prompted for security code, enter 12345 (default code unless changed)
    WARNING: Don't forget to make backup of all of your phone contents, as the above steps might cause in loss of user data.
    V 05.11
    RM-243
    Nokia 6120C (B21.01)

  • Silent FULL install of Reader 10.1.2 (MUI) Failing to open Web Browser PDFs post

    Hello,
    having major issues with a silent install to 3300 users.
    I Have a vb script that runs in SCCM to install reader 10.1.0 (MUI) and the increnetal patches for 10.1.1 and 10.1.2 both MUI.  I have created a transform to not use a desktop icon, turn on protect mode and supress the eula.  The install does not load in the script unless adobe processes have ended.  The log file reports a successfull install and PDFs ope with a language prompt for the first one from the local machine fne.   3 problems.
    ** The script searches for old versions and completly install the mui version over all with the following command line:
    "AcroRead.msi TRANSFORMS=AcroRead.mst PATCH="AdbeRdrUpd1011_MUI.msp; AdbeRdrUpd1012_MUI.msp" ALLUSERS=1 LANG_ID=1033 PRODUCTLANGUAGE=1033 LEAVE_PDFOWNERSHIP=YES REMOVE_PREVIOUS=YES EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES /qn /norestart /LOG c:\progra~1\Adobe\AdobeReader10.1.2.log"
    Setup.ini file reads:
    [Startup]
    RequireOS=Windows 2000
    RequireMSI=3.0
    RequireIE=6.0.2600.0
    CmdLine=/sl"1033" /rs /sPB
    [Product]
    msi=AcroRead.msi
    CmdLine=TRANSFORMS="AcroRead.mst"
    Languages=1033
    1033=English (United States)
    [Windows 2000]
    PlatformID=2
    MajorVersion=5
    ServicePackMajor=4
    [MSI Updater]
    Path=http://ardownload.adobe.com/pub/adobe/reader/win/8.x/8.0/misc/WindowsI nstaller-KB893803-v2-x86.exe
    Problems on about 120 computers so far:
    1.  If the system had 10.1.1  and not the 10.1.1 MUI and 10.1.2 MUI stay in Add Remove Programs
    2. Systems that get the full uninstall and reinstall  even if adobe is closed and browser is closed and user can not read files from the web or email after the complete install to 10.1.2 mui.  Adobe works locally.
    3.  Some systems appear to upgrade fine. 
    HELP PLEASE!!!!

    There are a couple of things that caught my notice in the command being used which may be causing the issue:
    1. You should not be clubbing the Rdr MUI 10.1.1 patch and the Rdr MUI 10.1.2 patch, since all the Reader patches are cumulative till the last quarterly release. Hence, no need to apply the Reader 10.1.1 MUI patch in this case. The correct command would be:
    "AcroRead.msi TRANSFORMS=AcroRead.mst PATCH="AdbeRdrUpd1012_MUI.msp" ALLUSERS=1 LANG_ID=1033 PRODUCTLANGUAGE=1033 LEAVE_PDFOWNERSHIP=YES REMOVE_PREVIOUS=YES EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES /qn /norestart /LOG c:\progra~1\Adobe\AdobeReader10.1.2.log"
    2. The REMOVE_PREVIOUS key will work only for the same product. In your case, since a localized version of Reader 10.1.1 is already present, it will not be able to remove the same while installing Reader MUI 10.1.2. Hence, the two entries in the Control Panel.
    I guess you can achieve the same by pushing the command for uninstalling any non MUI installations of Reader (msiexec /x <path to Reader 10.1.0 non MUI MSI>). This can be followed by pushing the above mentioned script for deploying the Reader 10.1.2 MUI application.
    3. Also, since you are using the No Reboot switch which must be suppressing any and all reboot prompts. But are you ensuring that the system is restarted post any update? It might be the case that some files may be locked and would be needing a restart for them to be properly updated. This may be causing the browser issue as you had stated.
    Do let me know if this helps.

  • Links will not open web browser

    The last week I noticed that when i click on a hyper link in mail it will not open
    unless I copy & paste it.

    I have this problem now, anyone got any clues?

  • Web Browser Session Hangs When Opening More Than One Query

    Let me start off with the BW environment - we are on BW release 3.50 at support pack level 12. Basis component is release 6.40 at level 12.
    We have a situation where a web browser HTTP session "hangs" while trying to execute more than one query at a time. A role based menu template is used by our end-users to run queries. The end-users execute a query and while it is running, try to execute a second query. But the web browser for the second query does not become available until the first query is complete.
    The following is the detailed steps of the process:
    1. From my user menu in BW, expand the folder for Role Z: BW_REPORTING and click on SAP_BW_TEMPLATE – Web_Role_Menu. Web browser window will open.
    2. Within the ZTPL_Role_Menu_Reporting web page, select Role Z: FUNC_DEVELOPER > BW Reporting > Controlling > Profitability Analysis > Detail query. (Role Z: FUNC_TESTER can be used in this example as well, just follow the same menu path).  Click on Detail and another web browser window will open for the query selection screen.
    3. On the selection screen for the CO-PA Detail query, enter values and execute the query.
    4. While the CO-PA Detail query is executing, go back to the first opened web browser for ZTPL_Role_Menu_Reporting and go to Role Z: FUNC_DEVELOPER > BW Reporting > Controlling > Profitability Analysis > Operating Concern query. Run the CO-PA Operating Concern query while the CO-PA Detail query is still executing. The session for the Operating Concern “hangs” and does not display the selection screen until the CO-PA Detail query has completed. Once the Detail query has finished, then the second query, CO-PA Operating Concern will then display the selection screen for the query.
    Our end-users expect the second query to display the selection screen immediately with no delay. The end-users do not want to wait for the selection screen of the second query. They want to be able to execute the queries simultaneously.
    Our Basis group as tried adjusting some parameters and has implemented OSS note 853396, but the issue still exists.
    Is it a BW issue or is it an issue with MS Internet Explorer?
    Your input and suggestions are appreciated.
    Thanks.

    Hi.
    I had a somewhat similar issue earlier when I tried closing BW Query windows, it would freeze and wouldn't close. I resolved the issue by turning off some BHO (Browser help Objects) in IE.It can be done using IE>Tools>Manage Add-Ons
    Cheers
    Anand

  • Can not open Web from Nokia N81

    Hi
    My Nokia N81 worked fine until today
    I just connected it to PC Suite and made a synchronization - now I have folowing problem - I can not open web-browser any more.
    When I go into menu and then try to open Icon web - screens becames blue (desctopimage) for a second and then I'm landing again in menu just as it was before click on icon
    What can be the reason of this problem?
    Similar happened also with N-Gage Icon. I've tried it with memory card and without it - the result is the same - I can not go into web-section of my Nokia

    Hi,
    It seems that some faults has occurred during
    the synchronization. You should re-set your
    internet settings. If the issue persists your
    phone will need reformat.
    Regards.
    Fattan

  • About install netscape6 web browser

    Hi,fine:
    I already install netscape 6 on my solaris 7 for x86 system.But
    I open web browser appear "hot java"browser through CDE environment.
    Now I hope my web browser is netscape 6 browser .Please tell me
    how to to it.
    Thank again.

    Make sure the command "netscape" can be found in your $PATH.
    When you click on the "Web-Browser" icon, CDE runs the shell
    script /usr/dt/bin/sdtwebclient to start the web browser. This
    script searches your $PATH for the commands "netscape", "sdthotjava"
    and "hotjave". The scripts starts the first one it finds.

  • About solaris 7 web browser

    Hi, fine;
    I just install solaris 7 for x86,system auto into cde interface.I found explorer's name is hostjava and netscape not open when I open web browser. Please tell me how to do about it.
    Thang you

    Hi,
    Netscape is not bundled with Solaris 7.
    I just installed netscape 4.75, downloaded from http://www.sun.com/solaris/netscape
    And restarted CDE, after that it opens netscape as default browser.
    Thanks
    Kalpesh

  • How can I open multiple instances of the same folder and web browser in different desktops in Lion?

    I've selected "none" for association but it doesn't work. In other words, I have a Dropbox folder on my desktop. I'd like to be able to open that same folder using the same shortcut on different Lion desktops. However, whenever I try to use the same shortcut on a different desktop, it switches to the one where it's already open. Same problem with web browsers; if I try to just click on a web browser to create a new window, it will take me back to the other desktop.
    I didn't have this problem before I had to replace my hard drive and update everything again. I am aware of the "restart Finder" option as well as associating programs with individual desktops. All of the things in question are currently selected as "none."
    Any help would be greatly appreciated!

    I just set Safari's option to None. That is I right clicked on the dock, selected options, and chose none. Also, in Mission Control's tab of System Preferences I clicked Off When switching to an application, switch to a space with open windows for that application. That let me open a new Safari window no matter what desktop I was in. But I had to do both. Just setting the desktop option to none didn't seem to do it. Finder seems to work okay with just the none option set.

Maybe you are looking for