Java problem - opening a webpage

How do you add a function to open a webpage in the default browser? Please help!

dalcde wrote:
cannot find symbol
symbol: method browse(java.lang.String)That means the compiler can't find a browse(...)-method in the class in the (assuming) Desktop class that takes a String as a parameter.
Have a look at the API docs for that class, it will tell you how to use the browse(...) method [http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html]
dalcde wrote:
... or a link to a tutorial?You don't need someone else for that, right?

Similar Messages

  • Open a webpage using Java

    Hi,
    I am trying to open a webpage in a browser using Java code. I have been reading the tutorials and came across some code that reads the webpage as a simple text using getPageContent etc. I don't need to read the page, I just need to open it.
    Can anyone please guide me, tell me which docs I should refer to etc.
    Thanks,
    M

    import java.awt.Desktop; //Java 1.6
    import java.io.IOException;
    import java.net.URI;
    import java.net.URISyntaxException;
    public class BrowseExample {
        public static void main(String[] args) throws IOException, URISyntaxException {
            URI uri = new URI("http://java.sun.com");
            Desktop.getDesktop().browse(uri);
    }

  • Problem opening Macroleads Firetool and and Omnileads in Webfire. Tried to see if I could download what it seems to be asking for "Java runtime environment 1.6 u29." Either can't find it, or not available. What do I do?

    Problem opening Macroleads Firetool and and Omnileads in Webfire. Tried to see if I could download what it seems to be asking for "Java runtime environment 1.6 u29." Thought I downloaded it, but did not help
    I've lost track of what I've done to solve the problem, but in any case I still get the red bar message that says "If you accidentally clicked no to the security warning, please click here to reload".
    Can't be clicked...does not work and I have no idea what it means.

    It is likely that you either don't have Java installed, or you have an out of data version. Go to [http://www.java.com www.java.com], and download and install the version of Java that is for your computer. After doing that, you should be all good to go.
    Also, Update all your plugins (Flash, etc.): [http://www.mozilla.org/plugincheck/ http://www.mozilla.org/plugincheck/].

  • Hi, since my update to OSX Yosemite, I have problems opening DW and AI CS6. A message with update to old Java SE-6 is displayed? How can I solve this problem? Thanks

    Hi,since my update to OSX Yosemite,I have problems opening DW and AI CS6. A message with update to old Java SE-6 is displayed?Thx

    You need to install Java SE 6 to run those programs. There has been quite a bit of discussion here about that. Something at one of these links should get you going...
    Prompted to install Java SE 6 Runtime | Mac OS 10.9
    Dreamweaver and Java SE 6 Runtime problem on MAC Mountain Lion OSX

  • Safari not open some webpages

    Hi there, I am a newbie on Mac and however on Safari. Sorry for my english too.
    I have problems to open some webpages with Safari, so I must use Firefox for some websites.
    Is that normal? I prefer Safari and I would like to use only it, but that's not possible, so I must use only Firefox as my preferred browser!
    I am not happy for this solution!

    HI,
    No, that's not normal. If you can open the same site on Firefox, then Safari should be able to also.
    Try trouble shooting...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 7 buttons and click Reset. Then relaunch Safari and try a webpage you couldn't open before. If it still won't load the page...
    Go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
    Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash. If you still have problems...
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and *restart your Mac.*
    Carolyn

  • Am connected to orange fr, i can d/load emails etc but cannot open any webpages, Ipod Touch 5th version, latest IOS installed. Any advise please.  First time I have experienced this as my Ipod works immediately elsewhere

    I am connected to Orange fr, I can download emails etc but cannot open any webpages.  Ipod Touch 5th vers, latest IOS installed, any advice would be most welcome.  This is the first time I have had this problem as my Ipod works immediately everywhere else.  My laptop does not show this problem using the same orange provider, so its obviously some setting in the Ipod :-(

    Try this:
    1. Double-click the Home button to reveal Task Bar at bottom
    2. Hold the Safari app down for a second or two until you see the minus sign
    3. Tap the minus sign to close app
    4. Re-launch the app and test
    Note: If necessary close all apps in the Task Bar

  • Problem loading safari webpage after switch from EDGE to 3G and vice versa.

    ok, very simple question
    i'm on edge, i want to go on safari, so i enable 3G. after that i go on safari and try to open a webpage. even after the 3G icon displays on top, it still takes a very long time before the webpage starts to load. Sometimes i get a message saying Safari could not open the page because the server stopped responding. IS THIS NORMAL?
    also if im on 3G and switch down to EDGE and then open a page in safari i get a message saying Could not activate cellular data network, even though the page loads anyway. IS THAT NORMAL?
    Message was edited by: Stevendo

    are you on 4.0.1?
    if so then this of course is not normal but it is also happening to me
    ill be at home and have 3G on 4 bars and i try to load a page on safari and nothing happens, then i switch it to edge and it connects, but like u when switching from 3G to edge i get those messages.. also i noticed that this only happended after i updated to 4.0.1 and i NEVER got these problems b4 on 4.0 and to make things worse.. in order for my 3G data to work i have to make a phone call, hang up, then ill get connectivity on 3G..
    so the fix... i dont kno??
    but im suffering like u...

  • Problem opening live web page (url) from within keynote

    hi.
    i encountered this problem during a recent presentation. i have a standard two-monitor set-up, on my laptop viewing notes etc and presenting on the attached monitor. the transitions between my slides are all set onClick.
    so, when i encounter a hyperlink in my presentation (of the web page type), when i click on it, i am not taken to the web page, but rather to the next slide.
    how do i avoid this? how do i make keynote follow the hyperlink -- i.e. open the webpage during the presentation?
    many thanks in advance for your tips.

    use '_blank' as parameter, not '_self'.
    Guy Dallaire (guest) wrote:
    : Hi,
    : We would like to open a Web Page from a forms running in
    : client/server as well as from a form runningover the web.
    : Over the web, we plan to use SHOW_DOWUMENT (Even tough it
    seems
    : broken, on forms 6.0, the only way we have got it working was
    by
    : using the parameter that overwrites the current page (the
    form),
    : we cannot have it open an URL in another window)
    : In C/S mode, the SHOW DOCUMENT does not work. What is the
    proper
    : way to lauch an URL in a browser in C/S mode ?
    : Is there a way to determine if we're running in CS mode or Web
    : Mode ? We would like to use the same code both on the web and
    in
    : C/S
    : Example pseudo code:
    : if (Running in CS Mode) then
    : open the URL using C/S method
    : else
    : open the URL with show dowument
    : fi
    : Thanks
    null

  • Problem opening local files

    Hi!
    Our servlet has problems opening links to local files. The syntax of the link is correct (file:///program_install_folder/subFolder1/some_file.txt). When user copy-pastes the url to IE's address bar, the file opens without problems, but clicking the link does nothing.
    This has probably something to do with IE's security issues, but:
    1) is there any way to solve this problem with java?
    2) adding the site to trusted sites doesn't help, but is there any other settings which could enable user to open the link to local file?
    Requirement is that program works with Windows XP and IE6.

    servlets run on the server and
    cannot open local client files

  • Problems Opening Perspective in Eclipse

    I have a new install of Eclipse into which I have installed
    the plug-in. I cannot open the Flex Development Perspective. It
    just displays the pop-up "Problems Opening Perspective". Its
    Eclipse 3.3.2
    Any ideas why? Or at least how to or where to look for more
    info? Is there a plug-in log?
    Thanks!

    since your eclipse files and workspace/s are all run on the
    java runtime environment and all configurations are saved at the
    file level (no registry edits etc.), it's not uncommon to have
    different eclipse versions in different folders running different
    sets of plugins, defaulting to different workspaces, etc.
    That's the long way of me suggesting a new install in a
    different folder and trying it from scratch. If it has the same
    behavior, you might try a different version of java.

  • Problems opening perspective in Database Studio

    Hi,
    after installation of the latest Database Studio release it doesn't work how I would like to.
    When i try to open the Database Studio perspective it throws an error:
    Problem opening perspective
    'com.sap.sdb.tools.ui.perspectives.mainPerspective'
    I have Java 1.6.0_07 installed.
    Has anyone an idea?
    Thank you.

    Hi Norma,
    I did resolve the issue.
    Basically MAXDB Database sturio 7.8 requires JRE 1.6. I was having same issues. Then i uninstalled MAXDB
    Uninstall the Database Studio version.
    1. To uninstall, call the installation manager 7.8 ("Programs -> SAP MaxDB -> Installation Manager").
    2. Choose "Remove MaxDB Installation".
    3. Under "Legacy", select the Database Studio version.
                  Selecting "Legacy" ensures that you do not select the Database Studio 7.8 that you have just installed for uninstallation.
    4. Choose "Forward" to confirm that you want the system to remove the installation.
                  Due to the operation of the earlier Database Studio version, some processes may still run (for example, serv.exe). Stop these processes and continue with the 7.8 installation.
    And then installed JRE 1.6. Then again Installed MAXDB Database studio and got the same issue.
    Then i deleted the files in location c:\Users\<User>\sdb\DatabaseStudio (deleted files .configuration, .metadata, p2) and then restarted maxdb database studio and worked for me.
    Ritesh

  • HT1365 Hi I have Imac 5 processor and I guess installed Lion I am having difficulty with Wifi connection. Sometimes after shut down number of times still does not access wifi or if it does I can see wifi bar on iMac but can't open any webpage. Please help

    Hi everybody,
    I have Imac 5 processor and I guess installed Lion I am having difficulty with Wifi connection. Sometimes after shut down number of times still does not access wifi or if it does I can see wifi bar on iMac but can't open any webpage. Please help
    Thanks

    Hello:
    There was an OS X 10.7 update released a month or so ago that fixed this problem.  Run software update.
    Barry

  • Getting the error " [java] Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST class " while building the O2A 2.1.0 PIP

    Getting the error " [java] Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST class " while building the O2A 2.1.0 PIP. I am using the Design Studio 4.3.2 for building the O2A 2.1.0 PIP. Please let me know how to resolve this issue. Here I am enclosing the log file .

    We have basically the same issue when we try to create the interpreter using the embedded method..
    I was able to use the interpreter embedded in a java client as long as the weblogic jars were located in a weblogic install if I tried to use them from a maven repository no luck at all...
    All of this worked easily in 9.2 now in 10.3 it seems more error prone and less documented.
    I have seen close to a 100 posts on issues related to this so is there a document which outlines specifics....
    We / I have used weblogic now for almost 10 years and moving from 8.1 to 9.2 was painful and we expected the move from 9.2 to 10.3 not to be soo bad but its proving to be as painful if not more painful than moving to 9.2. We seem to spend a good bit of our time working around issues in the next new release that were not in the previous one..
    Any help would be appreciated I think we will open a support case but even that is more painful...
    Any help would be greatly appreciated..
    PS: We confirmed that all jars in the startweblogic classpath were in the startup. The server we have the embedded wlst instance is a managed server and we are using the component in a war... Are there any restrictions which we are unaware of.
    Error we get is
    1 [ERROR] com.tfn.autex.order.weblogic.QueueMaintenanceUtility.addQueue():217 Error Adding Queue wowsers JNDI Name wowsers Exception: Invocation Target exception while getting the WLSTOffLineScript path

  • WF does not open any webpage

    hi
    i upgraded my old version of WF to the last one(37.0.2); but after that WF is unable to open webpages. when i want to open a webpage it shows only a blank page and the refresh icon is circulating without stopping. i reinstalled and also deleted it's profile but none of them was helpful.
    Is there any help?

    ''Tyler Downer [[#answer-724813|said]]''
    <blockquote>
    If that's the case then I'd suggest you remove waterfox and use Firefox :) Just FYI, we will be introducing full x64 support in Firefox in a few months, so might as well ditch waterfox now
    </blockquote>
    OK! so there isn't any way to solve it! one of my friends has this problem too.
    OK; thanks for your time.

  • Howto open a webpage with Firefox upon login on Mac?

    I'd like to open a webpage upon login on Mac.
    What i did so far:
    - I saved the url location from firefox onto my desktop. It's a .webloc file. Firefox can open this file at this point.
    - Firefox is set up as my default browser.
    - Added the webloc-file to my startup list on my Mac useraccount.
    Then i try. The website will open, but it uses Safari instead of Firefox (firefox is still default browser).
    Next thing it tried:
    - Associate .webloc files to open with Firefox by default instead of Safari (that appeared to be the problem).
    - PROBLEM: Mac/Firefox won't let me use Firefox as default application to run webloc files with.
    How to solve this?

    Hello Zeror, you have firefox as default browser in firefox preferences only ?
    or you have it already and in your safari preferences ? check from Safari : menu > Preferences > General > Default web browser > firefox .
    you can try the above if you haven't already.
    thank you

Maybe you are looking for

  • Crystal Reports 9 patches

    Hi, We installed Crystal Reports 9 on a PC.  The version installed off of the CD is version 9.2.2.693. I have seen that there is a SP7 for Crystal Reports 9 available.  I was not sure what version the SP7 would bring Crystal Reports 9 to. Are there a

  • Mails are not comming when error in Moni after alert configuration

    Hi PI Team, I want a Scenario Where if i get any Error for my Business Service i need an Mail to be triggered. Can any one suggest will it be better to use BPM for this. If so what are the steps for that? I had done all the Steps specified in the fol

  • Dreamweaver CS6 will not start

    I've had this problem for several weeks and thought I had it fixed by resetting the Preferences (http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html), however, my DCS6 application will not start again, and it seems to h

  • Version management- the 'I' type (version created by import)

    Hi, We are in the midst of upgrade. I noticed that after the system copy, some program screens are missing in the new system. A check on the program version in the old system shows this: Version Cat Fla SAP Rel. Arch Request    Project Version(s) in

  • Returning to jsp causes error

    I'm getting a bizarre error when one of my actions go back to my jsp page: javax.faces.FacesException: Assertion Failed      com.sun.faces.util.Util.doAssert(Util.java:1220) Anyone have any idea?