Launch a browser from a application.

I know about AppletContext.showDocument, but is there any method for applications to launch a web browser in a similar platform independant manner? If so is there also the ability to specify the browser has no address bar/toolbars etc?
The JNLP package allows basic interaction with a browser but only if you are actually deploying your app over jnlp.
If anyone can point me to the classes - it'd be a great help!
Thanks in anticipation.

Thats excellent!!!!!
Cheers!
(reckoned it would be more difficult than the code is ;p)

Similar Messages

  • Launch Discoverer 10g from Oracle Applications Menu

    Please provide steps to launch Discoverer 10g from Oracle applications menu.
    Thanks in advance.
    suresh

    Hi,
    Follow these steps....
    The process is in 3 stages _(stage 1 will be done only once for all the reports)._
    Stage 1:
    Set the application discoverer relevant parameters.
    Perform this stage only once.
    1.1 Enter the application in System Administrator responsibility.
    1.2 Choose menu 'Profile' and then submenu 'System'.
    1.3 Find the desired profile by filling 'Icx%Discoverer%' and press Find button.
    1.4 Fill the fields (only the values) as described in the table of values bellow.
    Parameter Value
    ICX: Discoverer Default End User Layer Schema Prefix your eul name without the suffix (_US).
    note that if you have several invs it can be diffrent between them.
    ICX: Discoverer End User Layer Language Override American English
    ICX: Discoverer Launcher http://your_server_name:7777/discoverer/viewer?Connect=[APPS_SECURE]
    ICX: Discoverer Release 10 or any other that you are using
    ICX: Discoverer Viewer Launcher http://your_server_name:7777/discoverer/viewer?Connect=[APPS_SECURE]
    ICX: Discoverer use Viewer Yes (or not if you want plus to open - but change the viewer to plus in the link as well - the previos parameter)
    Don't forget to press save button.
    Stage 1 Ends.
    Stage 2:
    Build an oracle application function for each discoverer report.
    Perform this stage for each report.
    2.1 Enter the application in System Administrator responsibility.
    2.2 Choose menu 'Application' and then submenu 'Function'.
    2.3 Fill needed values in each tab by the next instructions (function values)
    2.3.1 Description tab – fill the function, function user name and the description. Notice that the function value should be without spaces.
    2.3.2 Properties tab – fill the:
    Function with the same name you have choose in the previous tab,
    Type with 'SSWA plsql function',
    Maintenance Mode Support with 'None' (Default value),
    Context Dependence with 'Responsibility' (Default value).
    2.3.3 Form tab- fill the:
    Function with the same name you have choose in the previous tab,
    Form & Application fields leave empty,
    Parameters – there are two options available:
    1st Leave it empty – will cause the function to open the discoverer all reports web page and user will have to choose a specific report from the list .
    2nd Fill it with value '=workbook=name of the workbook' but without spaces, convert the spaces (if there are any) from the workbook name to + (plus) sign.
    For example '=workbook=BI+SERVICE+Performance' represents the string for the 'BI SERVICE Performance' report.
    Note: you can also send parameters to the report but since almost all the parameters have a default value (accept from dates) it's not necessary.
    2.3.4 Web HTML tab – fill the HTML call with ' OracleOASIS.RunDiscoverer'.
    Don't forget to press save button.
    Stage 2 Ends.
    Stage 3:
    Build an oracle application menu or submenu for each discoverer report that represented by the function you has created in stage 2.
    Perform this stage for each pair - responsibility + report/function.
    3.1 Enter the application in System Administrator responsibility.
    3.2 Choose menu 'Security' and then submenu 'Responsibility' and then submenu 'Define'.
    3.3 Locate the needed menu by the responsibility that you want to enable her to use the report – of course that the report should be granted for the responsibility via discoverer mechanism as well.
    Do it by clicking on the flashlight that located in the left upper corner and find the needed responsibility.
    3.4 Find the needed responsibility and select her via next screen (Don't forget to use % as wildcards)-choose by double click on her
    3.5 Copy the menu name that related to the responsibility you have choose from the menu field located in the next screen and close the window.
    3.6 From the navigator screen choose menu 'Application' and then submenu 'Menu'.
    3.7 Locate the menu that you've copied in 3.5 (with the flashlight and the find screen, double click on the menu name – similar to 3.3 and 3.4) via next screen.
    3.8 Press on the 'add record' sign (+) that located in the right upper corner of the screen (Do it after the mouse sign and focus is in the rows as you can see the oval mark).
    3.9 Fill the prompt with what you want the user to see in the menu that will activate the report link and after fill the user function name as you have build her in stage 2 (Don't forget to save it).
    Don't forget to press save button.
    Stage 3 Ends.

  • Any new ideas for launching web browser from application

    I have searched the forums trying to find a new way of launching a web browser from a java application. The problem I am having is that on Unix and Linux systems, at least the variety I have access to (not quite sure on what that variety those are as they are not my systems or systems I control), the common method of using Runtime.getRuntime().exec(STRING) with either netscape or mozilla does not work. While using the Runtime.exec method is not the same as a console, I did try on these systems "netscape + A_WEB_ADDRESS" (or mozilla) and it did launch the respective browser with the page, so it appears that at least from the console level, those commands are valid.
    All the forums seem to say that the Runtime.exec method is the way to go. All the source code I have found through links from the forum say the same thing. I have voted on this bug:
    http://developer.java.sun.com/developer/bugParade/bugs/4210168.html
    and the feedback there does seem to indicate that there is similar trouble out there. Below is the code I am using. It does work on Win2000,XP, and Mac OSX. The application is not supported on earlier systems, and as it stands it will not work on Win 95,98, nor ME. Only small modification should be needed for work on those OSs, but as I no longer personally use those OSs, I cannot be sure.
    private void openNativeBrowser(String url) {
    // not the browser itself is started, i only call something like
    // start http://www.javasoft.com
    // and then the standardbrowser will be started ...
    StringBuffer call = new StringBuffer();
    System.err.println(System.getProperty("os.name"));
    System.err.println(System.getProperty("user.dir"));
    try {
    // which OS ?
    String operatingSystem = System.getProperty("os.name");
    // how to call the OS
    if (operatingSystem.toLowerCase().indexOf("windows") > -1)
    call.append("cmd /c start ").append(url);
    else
    if (operatingSystem.toLowerCase().indexOf("mac") > -1)
    call.append("open ").append(url + " &");
    else if(operatingSystem.toLowerCase().indexOf("linux") > -1)
    // use Script 'netscape'
    call.append("mozilla ").append(url).append(" &");
    else
    call.append("netscape ").append(url).append(" &");
    System.err.println(call.toString());
    // start it ...
    Runtime.getRuntime().exec(call.toString());
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    As I said, if you have a new way to call the broswer that seems to work on either Unix or Linux, please post it, point to it, or explain it.
    Aaron

    there is a shell script on Linux called htmlview that you can launch like this:
    String[] cmd = {"htmlview", "http://java.sun.com"};
    try {
        Runtime.getRuntime().exec(cmd);
    } catch (IOException ioe) {
        // do something
    }which will open the default browser. Don't think this is available on other *NIX though, although the script itself would probably work so you could include it with your app (/usr/bin/htmlview).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Launching Browser From Swing Application - Help Needed

    Hi,
    I am opening a HTML file in Internet Explorer from my swing application.
    I am using the code given below
    private final static String WIN_FLAG = "url.dll,FileProtocolHandler";
    private final static String WIN_PATH = "rundll32";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    // url is HTML file Path
    Process p = Runtime.getRuntime().exec( cmd );
    The HTML file is opening up,but it always opens behind the swing application,that makes me every time to maximize the HTML file after it being opened up.
    I want to open it in front of the Swing Application.
    Any Help Please ?
    - Manikandan

    Browser Utility - Class to launch a URL in a web browser in
    a platform independent manner. Includes an optional swing
    GUI allowing user customization. [Open Source - GPL]
    http://ostermiller.org/utils/Browser.html
    BrowserLauncher - Open the system web browser with
    particular attention paid to various Macintosh systems.
    (Freeware)
    http://browserlauncher.sourceforge.net/
    Java World - With a little platform-specific Java code, you
    can easily use your system's default browser to display any
    URL in Windows or Unix.
    http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
    JConfig - Class Libraries that allow a URL to be launched in
    a browser on Windows, Unix, or Macintosh. [Commercial]
    http://www.tolstoy.com/samizdat/jconfig.html
    Apple - MRJFileUtils.openURL() not implemented in Mac OS X.
    http://developer.apple.com/techpubs/macosx/ReleaseNotes/JavaGMWebReleaseNotes.html#MRJToolkit
    Apple - How one would open a URL in a web browser on a
    Macintosh.
    http://developer.apple.com/qa/java/java12.html

  • How to launch a browser from a java/MAC application

    I know, this topic has been brought up over, and over, however I couldn't find info regarding MAC environments. I don't have any former experience with MAC, but now I'm getting desperate for a solution. I need to be able to launch the default browser showing a certain URL on MAC/OS. Any clue would be appreciated.
    thanks,
    m. berdan

    I wrote libraies that will do this:
    http://ostermiller.org/utils/Browser.html
    I also keep a list of other resources to help you out:
    http://dmoz.org/Bookmarks/D/deadsea/Java_Help/Web_Browser/
    Stephen

  • Launching a Browser from a Java Application

    I want to open an HTML page in the "default" browser. I know how to run commands so I could open IE or Netscape but I want to open a browser without having to know what browser they have installed. It would be nice if there is something that isn't platform dependent. Is this possible?

    It would be nice if there is something that isn't platform dependent. So you've seen the java tip
    http://www.javaworld.com/javaworld/javatips/jw-javatip66.html
    I don't think it's that easy to do what you want so that it is portable... sad that the current API doesn't have great support for programs written in other languages than Java.

  • Lauch IE browser from Java Application

    Hi, I am interested in launching an IE window from a Java application. Is there a way
    to accomplish this? Thanks.

    Again, any other way that allows me to start a java application and IE browser on WINDOWS2000 would be helpful too.

  • Launching a page from Oracle Applications (E-Business Suite) 11i

    I have been trying to get a page in an APEX application to authenticate automatically from a menu function in Apps. I have been working from these instructions:
    http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf
    I have created the procedures, functions etc as required and have set up the menu entry in apps. However, whenever I try to launch the application, the e-business suite login page is shown. The page doesn't display an error however the URL has the following:
    http://MYHOST:MYPORT/OA_HTML/AppsLocalLogin.jsp?requestUrl=APPSHOMEPAGE&cancelUrl=http%3A%2F%MYHOST%3AMYPORT%2Foa_servlets%2Foracle.apps.fnd.sso.AppsLogin&langCode=US&errText=Invalid+Function.++Please+contact+the+System+Administrator.+Please+login+again.&username=MYUSERNAME&s1=DqwnJQDrCfPsNs0fP7nn-g..I have ommitted some info such as the host and port for security reasons.
    I have tried several things such as editing out parts of the authentication procedure and passwing with no parameters but none work. Has anyone else successfully done this and if so, do youhave any pointers?
    Any help would be much appreciated!
    Cheers,

    I've searched metalink for info on this however everything seems to point to simply having the user type in their username and password. I need to be able to seamlessly pass the credentials across from apps to apex.
    Anyone an ideas!? :)
    Thanks

  • 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

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

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

  • Opening wap browser from j2me application

    is there any way to open a wap browser which already available on the handset?
    the scenarion maybe like this, there is a menu and each item on the menu when chosen will open a wap browser directed to a certain wap site.
    so if there's is an item for Yahoo! Mail, wheh user click it. the wap browser would open the yahoo mail site.
    TiA

    Hi,
    I'm trying a similar thing (open the default mobile browser with the command line platform request). I works, but I tried it on different emulators, and they don't react the same way. For exemple with the Nokia SDK series 40 (standalone and with WTK2) the midlet is first running and I have to exit the midlet before I am asked if I want to go to the url.
    What can be the reason ? Is it possible to force the browser to be openned and have the midlet running background ?

  • Open Browser from My Application

    I have created a Notepad in Java.I want to create an option which should open the browser and pass the contents of the Notepad to it.Can anyone suggest how do i go about doing this??Thanx in Advance

    Here's one possibility: save the text in a temporary file and open it in the browser with Runtime.exec:
    http://www.javaworld.com/javaworld/javatips/jw-javatip66.html?

  • Attempting to launch a help browser from a java application

    I am currently investigating being able to view help html files through launching a browser from my Java application. I have come across the java.lang.Runtime and java.lang.Process classes which allow me to launch a browser like Netscape or Explorer and bring up a html file to view.
    What I want to do is launch the browser and bring up an html index file as well as the required html help file every time a user would like to use the help for my application.
    Is this possible using the other exec commands. If so, how? Is there somewhere I can find a user guide for Netscape and Explorer commands in order to send additional commands to the browser in order to do this.
    Thanks.

    Good news is it must be possible because VisualAge does it but I don't know how.

Maybe you are looking for

  • Mail wont open properly

    when i click on the mail icon, the window pops up, but nothing loads...the little rainbow circle just spins and spins and spins, and i have to force quit the application. what do i do?

  • Group txt no longer works on iphone 4s

    I have just got my iPhone 4s, all looking great until I went to use a group txt app. I run a football team and used the group txt app (37 recipients) on the iPhone 4 all the time, tried to send group txt yesterday and it came up as an imessage and on

  • Document Distribution with customized event.

    Hi, Is anyone familiar with the fenomenon "document distribution" in SAP? The following is the case: When a document is changed and saved in SAP the event DRAW.CHANGED is triggered. In SWETYPV you can link this event to the receiver DISTRIBUTION. Her

  • Visual Basic making pdf with hyperlink Acrobat 9 / Office 2003

    hello, I try to make document with VBA and I can't use the same references. AdobePdfMakerForOffice seems don't work since Acrobat 6 ( an object seems to have disappear) I have try with pdfmakerapilib an have an error (-10) If someone has an Idea for

  • [cs3][as2] Help with Animation Displacement

    I've been trying to piece together a way to have an image with a flag wave fade in as soon as the movie loads. Once the image is faded in almost all the way, I want the waving to slow to a stop so at the end, it's a static image. I've gotten most of