Epcm.doNavigate(): browser url changes

Hi,<br>
<br>
i created a whole new navigation area. When using epcm.doNavigate, the url of the browser changes to the location of the current page.But i want it to stay the same: .../irj/portal.<br><br>
I compared my code to the original topLevelNavigation, but i can't find any differences that could prevent this url change.<br><br>
Any ideas?<br><br>
kind regards,<br>
Stephie<br><br>
<script><br>
function doMouseClick(clickedNode){<br>
     EPCM.doNavigate(clickedNode);<br>
}<br>
</script<br>
...<br>
a href="#" onclick="doMouseClick('<%=node1stLevel.getHashedName()%>')"><%=node1stLevel.getTitle(locale)%>  </a

Hi,
do you have a real link or an HTMLB link?
In HTMLB you just have to
link.setOnClientClick("EPCM.doNavigate('ROLES://" + <yourTarget> + "', 0);");
But even if it is no HTMLB you could try to set the mode as second parameter.
0 or not specified: Depending on the setting of the WorkProtect feature the target is opened in a new window or on the current desktop.
1: Open target in a new window, with no a portal header and navigation bar.
2: Open target in a new window, with a portal header and navigation bar.
Maybe that helps.
Best regards
Robert

Similar Messages

  • Get Browser url change

    Hi,
    I would like to know if it's possible when i develop an applet contained in a popup window opened by a frame doc, to be informed in this applet, by the browser that a new docURL is requested in one of the frames, or that a new url is typed in the browser??
    Thanks
    emilie

    You can read about JavaScript-to-Java communication here: http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/js_java.html
    JavaScript has little to do with Java so you probably will not get many answers on this site. I suggest you search the Net for information on JavaScript. I don't (want to) know much about JavaScript.

  • URL change in EPCM.doNavigate

    Hi Devina,
    one idea, two remarks:
    1.) Just try to set the onClientClick programmatically, that is before closing the button (</hbj:button>), call setOnClientClick on the button object. <i>Maybe</i> the encoding only happens by the taglib... (just an idea, didn't check it).
    2.) You have a strange parameter passung URL of the form blabla/blubblubb&p=1=2 instead of something like blabla/blubblubb?p1=1&p2=2 or so... any reason for that?!?!
    3.) Hardcoding the PCD location doesn't sound like a good idea in general. Maybe a relative navigation could work, otherwise at least you should parametrize the PCD location.
    Hope it helps
    Detlev

    Detlev ....
    I am still stuck ...
    Now, I do get the number of the row clicked .. but i need to pass this value to the bean to get the corresponding employee to pass as a parameter to EPCM.doNavigate. But i guess it is not possible to pass a value frm javascript to java. Pls see the code..
    JSP
    <script language='JavaScript'>
    <% int i = 0;
    %>
    function test(){
    alert(' i am being passed to onclick of button ' + i);
    <b>pernr = <%=myTableViewBean.getModel.getValueAt(i,2) %>;</b>
    EPCM.doNavigate('ROLES://portal_content/com.hersheys.Hershey_Content/com.hersheys.Human_Resources/com.hersheys.hr.sap_mss_iviews/EmployeeExit?SCENARIO_PARAMS=PERNR=pernr',0);
    function test2(){
    alert(' selected row is ' + htmlbevent.obj.getClickedRow());
    i = htmlbevent.obj.getClickedRow();
    </script>
    <hbj:page title="AIP TeamViewer" >
            <hbj:form id="myFormId">
                   <%  pageContext.setAttribute("myRootNode", OrgSelectionBean.getTree());
                    OrgSelectionBean.renderTree(myFormId);
                   %>
              <hbj:tableView
               id="myTableView2"
               model="myTableViewBean.model"
               design="ALTERNATING"
               headerVisible="true"
               footerVisible="true"
               fillUpEmptyRows="true"
               navigationMode="BYLINE"
               selectionMode="SINGLESELECT"
               headerText="TableView example 1"
               onNavigate="myOnNavigate"
               visibleFirstRow="1"
               visibleRowCount="5"
               rowCount="16"
               width="500 px"
              >
              <% 
               myTableView2.setOnClientRowSelection("test2()");
               myTableView2.setJsObjectNeeded(true);
               %>
              </hbj:tableView>
    <hbj:button
                   id="ButtonSearch"
                   text="Retrieve Forms"
                   width="50px"
                   tooltip="Click here to search"
                   jsObjectNeeded="true"
                   disabled="false"
                   design="STANDARD"
                   onClientClick="test()"
                   />
              </hbj:button>

  • I changed my browser url to blank now I cannot find bookmarks or menu toolbar, pls can someone tell me how to restore to original url setting?

    I tried to remove thumbnails from Firefox & following online advice went to browser.newtab.url and changed it to "blank", now when I open Firefox the menu bar with bookmarks etc is missing, but when I open a new tab the thumbnail images are still there, I don't have much experience & would appreciate advice as to how to restore. I tried restoring computer to earlier time but that didn't not restore the browser url to the state before I started messing with it. Please help!

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then hover the mouse to the top of the screen to make the Navigation Toolbar and Tab bar appear.<br>Click the Maximize button (top right corner of the Navigation Toolbar) to leave full screen mode or right-click empty space on a toolbar and choose "Exit Full Screen Mode" or press the F11 key.
    You can use one of these to set which toolbars to show.
    *"3-bar" Firefox menu button > Customize > Show/Hide Toolbars
    *View > Toolbars<br>Tap the Alt key or press F10 to show the Menu Bar
    *Right-click empty toolbar area
    What is the current value of the browser.newtab.url pref?
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved
    You can create a new Boolean pref on the about:config page to prevent Firefox from generating thumbnails for the about:newtab page.
    *name: browser.pagethumbnails.capturing_disabled with value: true
    Delete the thumbnails folder in the Firefox profile folder to remove already stored web page thumbnails.

  • Changing Client Browser URL

    How can I change the client browser URL after a request ?
    Example:
    Browser => HTTP/POST to "www.google.com" with the keywords included in the form
    Browser <= receive the response of the "www.google.com" but the url in the browser now contains "http://www.google.be/search?q=test&ie=UTF-8&oe=UTF-8&hl=nl&meta=".
    Thanks in advance,
    Geof

    In your example, Google.com does a redirect to that URL. You can do that like so:response.sendRedirect(response.encodeRedirectURL(newURL));If you are using level 2.2 or later of servlets, newURL can contain a URL relative to the current one, otherwise it has to be a full URL.

  • How to show a nice URL in Browser URL navigator?

    How to show a nice URL in Browser URL navigator?
    Hello
    Arquitecture:
    Internet --- Machine1 (Apache like Proxy Reverse and rewrite) --- MAchine2 (GLASSFISH-APEX LISTENER 2.0.1) --- DATABASE
    That application will be like a directory of products, we need a nice indexation inside google, yahoo, etc...
    We want to build an application with APEX, with a nice custom URL. like http:\\domain\pagina1\pagina2\pagina3
    Limitations:
    * We can not use frame
    Actually, We obtained that when we write in a browsers URL domain "the domain" redirect to "http://domain/apex/f?p=600", and that appear in "browser url" but we want to know if is posible to change that without use frames.
    Thanks.

    Interesting Morten states that "You can use Apache with mod_rewrite to set up mapping between REST-style URLs to your Apex pages...", I've seen no working examples of how to do this with Apache because mod_rewrite is very limited in it's ability to process the query string part of the URL, with all the APEX stuff we need to refer to.
    Morten if you are reading this, what's the secret man?

  • Browser URL 127.0.0.1?

    Hi,
    we will take a look to the Service Desk virt. Appliance.
    But after first install i got the hint on Appliance Managment Screen, the Browser URL for Service Desk is 127.0.0.1?
    Where can i change it to the correct URL/IP?
    Thx
    Thomas

    Sorry, my Mistake.
    I can open the URL: with correct IP after a System Reboot und waiting a few Seconds.....

  • [svn:fx-3.x] 11086: Fixing Safari 4.x support for url change detection.

    Revision: 11086
    Author:   [email protected]
    Date:     2009-10-22 11:42:17 -0700 (Thu, 22 Oct 2009)
    Log Message:
    Fixing Safari 4.x support for url change detection.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22483
    Reviewer: Alex
    Tests run: Manual browser test.
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22483
    Modified Paths:
        flex/sdk/branches/3.x/templates/html-templates/client-side-detection-with-history/history /history.js
        flex/sdk/branches/3.x/templates/html-templates/express-installation-with-history/history/ history.js
        flex/sdk/branches/3.x/templates/html-templates/no-player-detection-with-history/history/h istory.js

    HI,
    Go to ~Library/Internet Plugins. You should see: Glims
    "/Library/InputManagers/Glims/Glims.bundle/Contents/MacOS/Glims"
    Delete Glims from the system and restart your Mac.
    If you need help uninstalling Glims go here.
    Safari 4: May unexpectedly quit with "Glims for Safari" Read where you see: Resolution.
    Carolyn
    Message was edited by: Carolyn Samit

  • Update a browser URL without reloading the page

    Is there any way to update the browser url from flash without
    reloading the page?
    My main interest is in being able to use flash to change the
    url variables to reflect what is currently being displayed in the
    swf.
    ie.
    http://www.blah.com?frame=0 might be set to
    http://www.blah.com?frame=10 when the swf reaches frame 10,
    allowing the user to go directly to frame 10 if they return to the
    page later.
    Thanks
    Rick

    You can try a technique that is used by web designers to
    prevent back button actions. Through JavaScript you can write
    strings after hash "#" - like bookmarking (anchors) and then read
    this variables. The advantage is that page doesn't reload and
    bookmarks are saved in the browser history (back button issues).
    Hope it helps.

  • Why EPCM.donavigate doesnt work for Iview with isolation type embedded

    I am using EPCM.donavigate in JavaScript  in portal jspdynpage to navigate to different page. This works fine when my iView  isolation method is URL but it doesnt work when it is embedded. Am I missing something here? some import?
    Regards,
    Nitesh

    Hi,
    In Javacript of Portal jsp page, we are calling EPCM.doNavigate method  as below:
       function callfunc(obj,externalLink,rid,portalPageURL,InvalidLink)
                   return EPCM.doNavigate('ROLES://' + obj)     
    Final URL look something like this...
    portal_content/com.sap.pct/com.sap.prod_fld/com.sap.roles/com.sap.rol_career/com.sap.wks_1_1/Folder_2/com.sap.pag_1_1_2
    This Code works only for Iviews with URL Isolation but doesnt work with Embedded Iviews as my Page which contains this Iviews is also Embedded and Desktop is also embedded.

  • Have the web service API URLs changed?

    I'm currently in the beginning stages of working with the iTunes U Web Service API, and I'm running into an issue.
    Step 2 of uploading a web services document (pg 50 of the admin guide) says to request an upload URL. The base URL for this request:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL
    doesn't seem to be valid. I am receiving 404 errors:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>404 Not Found</title>
    <meta name="generator" content="Indigo">
    </head>
    <body>
    Not Found
    The requested URL /WebObjects/Core.woa/API/GetUploadURL was not found on this server.
    </body>
    </html>
    I've tried added the identifier path but still no luck. Just to be clear, I am generating and sending a proper authorization token; the issue is that the destination URL seems to be invalid.
    Have the API URLs changed or am I missing something?
    Thanks

    Hi Chris,
    A couple of things ...
    First is that you want to read page 54 of latest admin guide.
    Nextly, the basic way to access the API hasn't changed ... Apple has changed the XSD and the specifics of the API itself ... but not the way you call it. That's been pretty steady since I've been messing with it.
    The base URL should look like this:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL/your-university.ed u.111.222.333
    "111.222.333" is called a "handle" and it uniquely specifies a resource (track, cover image, etc.) within iTunes U. "111.222" is a path to the resource "333".
    After the base URL, you have to add the same kind of token string that you would for "Browsing" iTunes U ... that is a string in the form ...
    credentials=foo&identity=user&time=123456&signature =abc123abc&type=XMLControlFile
    A question mark "?" separates the base URL from the token string. Whatever you do, do -not- forget the type=XMLControlFile! The manual does not emphasize that you need to add this token, but you must to use the API.

  • Wiki URL change

    Is there a way to change the Snow Leopard Server wiki URL from http://www.example.com/groups/ to http://wiki.example.com/ ?

    Rüdiger,
    I am seeking to make a semantic wiki, which would be a hybrid between a
    traditional wiki and a semantic taxonomy editor. So RAP would come in
    handy for trees for moving around child & parent nodes, wizards for
    finding appropriate RDFS/OWL classes to link to, etc. I might use RAP for
    the editor interface only or perhaps for the whole wiki.
    > Direct links to content would be certainly possible one way or the other.
    This seems the crux of the issue. How can open RAP with parameters? So
    if my RAP instance is running at
    http://myapp.org/rap
    Can I then pass params into RAP by GETting to
    http://myapp.org/rap?selectedNode=my_semantic_object
    If I wanted to, could RAP support changing the browser URL? So if the
    user is on this page
    http://myapp.org/rap?selectedNode=first_semantic_object
    and then clicks a link to another page, could the browser go to this URL?
    http://myapp.org/rap?selectedNode=second_semantic_object
    Thanks!
    David Donohue

  • When i make changers to my firefox settings and i close the browser, the changes are not saved, why?

    when i make changes in the options menu like - allow pop ups or never remember history, it works great but when i close the browser, the changes i made are not saved, this never happened on the previous version
    i have unistalled firefox4 and reinstalled it but this dows not help

    See:
    * http://kb.mozillazine.org/Preferences_not_saved

  • HT1677 In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Launching Browser from Java when Browser URL is very  long

    Hi,
    I am trying to launch a browser from Java.
    I am doing the following.
    String command = "cmd" + "/c" + "start" + " browserURL";
    Process p = Runtime.getRuntime()exec(command);
    Note: My browserURL is very long.
    Now the browser is invoked. But the URL shown is incomplete and hence
    browser is unable to open the required application.
    Can someone help me in this.
    One way is to increase the buffer size on the command prompt?
    Is there any java command for this?
    Is there any other way to solve this issue.
    Thanks,
    AR

    this is my second time posting this, take note of it. I can't remember where i got it from, but credits go to the person that wrote it. It has helped me out thousands of times!!!
    to use, compile, then call from your program:
    org.newio.utils.BrowserLauncher.openURL("your url here")dfwtc
    package org.newio.utils;
    import java.io.File;
    import java.io.IOException;
    import java.lang.reflect.*;
    public class BrowserLauncher
        private static int jvm;
        private static Object browser;
        private static boolean loadedWithoutErrors;
        private static Class mrjFileUtilsClass;
        private static Class mrjOSTypeClass;
        private static Class macOSErrorClass;
        private static Class aeDescClass;
        private static Constructor aeTargetConstructor;
        private static Constructor appleEventConstructor;
        private static Constructor aeDescConstructor;
        private static Method findFolder;
        private static Method getFileType;
        private static Method makeOSType;
        private static Method putParameter;
        private static Method sendNoReply;
        private static Object kSystemFolderType;
        private static Integer keyDirectObject;
        private static Integer kAutoGenerateReturnID;
        private static Integer kAnyTransactionID;
        private static final int MRJ_2_0 = 0;
        private static final int MRJ_2_1 = 1;
        private static final int WINDOWS_NT = 2;
        private static final int WINDOWS_9x = 3;
        private static final int OTHER = -1;
        private static final String FINDER_TYPE = "FNDR";
        private static final String FINDER_CREATOR = "MACS";
        private static final String GURL_EVENT = "GURL";
        private static final String FIRST_WINDOWS_PARAMETER = "/c";
        private static final String SECOND_WINDOWS_PARAMETER = "start";
        private static final String NETSCAPE_OPEN_PARAMETER_START = " -remote 'openURL(";
        private static final String NETSCAPE_OPEN_PARAMETER_END = ")'";
        private static String errorMessage;
        private BrowserLauncher()
        private static boolean loadClasses()
            switch(jvm)
            default:
                break;
            case 0: // '\0'
                try
                    Class aeTargetClass = Class.forName("com.apple.MacOS.AETarget");
                    macOSErrorClass = Class.forName("com.apple.MacOS.MacOSError");
                    Class osUtilsClass = Class.forName("com.apple.MacOS.OSUtils");
                    Class appleEventClass = Class.forName("com.apple.MacOS.AppleEvent");
                    Class aeClass = Class.forName("com.apple.MacOS.ae");
                    aeDescClass = Class.forName("com.apple.MacOS.AEDesc");
                    aeTargetConstructor = aeTargetClass.getDeclaredConstructor(new Class[] {
                        Integer.TYPE
                    appleEventConstructor = appleEventClass.getDeclaredConstructor(new Class[] {
                        Integer.TYPE, Integer.TYPE, aeTargetClass, Integer.TYPE, Integer.TYPE
                    aeDescConstructor = aeDescClass.getDeclaredConstructor(new Class[] {
                        java.lang.String.class
                    makeOSType = osUtilsClass.getDeclaredMethod("makeOSType", new Class[] {
                        java.lang.String.class
                    putParameter = appleEventClass.getDeclaredMethod("putParameter", new Class[] {
                        Integer.TYPE, aeDescClass
                    sendNoReply = appleEventClass.getDeclaredMethod("sendNoReply", new Class[0]);
                    Field keyDirectObjectField = aeClass.getDeclaredField("keyDirectObject");
                    keyDirectObject = (Integer)keyDirectObjectField.get(null);
                    Field autoGenerateReturnIDField = appleEventClass.getDeclaredField("kAutoGenerateReturnID");
                    kAutoGenerateReturnID = (Integer)autoGenerateReturnIDField.get(null);
                    Field anyTransactionIDField = appleEventClass.getDeclaredField("kAnyTransactionID");
                    kAnyTransactionID = (Integer)anyTransactionIDField.get(null);
                    break;
                catch(ClassNotFoundException cnfe)
                    errorMessage = cnfe.getMessage();
                    return false;
                catch(NoSuchMethodException nsme)
                    errorMessage = nsme.getMessage();
                    return false;
                catch(NoSuchFieldException nsfe)
                    errorMessage = nsfe.getMessage();
                    return false;
                catch(IllegalAccessException iae)
                    errorMessage = iae.getMessage();
                return false;
            case 1: // '\001'
                try
                    mrjFileUtilsClass = Class.forName("com.apple.mrj.MRJFileUtils");
                    mrjOSTypeClass = Class.forName("com.apple.mrj.MRJOSType");
                    Field systemFolderField = mrjFileUtilsClass.getDeclaredField("kSystemFolderType");
                    kSystemFolderType = systemFolderField.get(null);
                    findFolder = mrjFileUtilsClass.getDeclaredMethod("findFolder", new Class[] {
                        mrjOSTypeClass
                    getFileType = mrjFileUtilsClass.getDeclaredMethod("getFileType", new Class[] {
                        java.io.File.class
                    break;
                catch(ClassNotFoundException cnfe)
                    errorMessage = cnfe.getMessage();
                    return false;
                catch(NoSuchFieldException nsfe)
                    errorMessage = nsfe.getMessage();
                    return false;
                catch(NoSuchMethodException nsme)
                    errorMessage = nsme.getMessage();
                    return false;
                catch(SecurityException se)
                    errorMessage = se.getMessage();
                    return false;
                catch(IllegalAccessException iae)
                    errorMessage = iae.getMessage();
                return false;
            return true;
        private static Object locateBrowser()
            if(browser != null)
                return browser;
            switch(jvm)
            case 0: // '\0'
                try
                    Integer finderCreatorCode = (Integer)makeOSType.invoke(null, new Object[] {
                        "MACS"
                    Object aeTarget = aeTargetConstructor.newInstance(new Object[] {
                        finderCreatorCode
                    Integer gurlType = (Integer)makeOSType.invoke(null, new Object[] {
                        "GURL"
                    Object appleEvent = appleEventConstructor.newInstance(new Object[] {
                        gurlType, gurlType, aeTarget, kAutoGenerateReturnID, kAnyTransactionID
                    return appleEvent;
                catch(IllegalAccessException iae)
                    browser = null;
                    errorMessage = iae.getMessage();
                    return browser;
                catch(InstantiationException ie)
                    browser = null;
                    errorMessage = ie.getMessage();
                    return browser;
                catch(InvocationTargetException ite)
                    browser = null;
                    errorMessage = ite.getMessage();
                    return browser;
            case 1: // '\001'
                File systemFolder;
                try
                    systemFolder = (File)findFolder.invoke(null, new Object[] {
                        kSystemFolderType
                catch(IllegalArgumentException iare)
                    browser = null;
                    errorMessage = iare.getMessage();
                    return browser;
                catch(IllegalAccessException iae)
                    browser = null;
                    errorMessage = iae.getMessage();
                    return browser;
                catch(InvocationTargetException ite)
                    browser = null;
                    errorMessage = ite.getTargetException().getClass() + ": " + ite.getTargetException().getMessage();
                    return browser;
                String systemFolderFiles[] = systemFolder.list();
                for(int i = 0; i < systemFolderFiles.length; i++)
                    try
                        File file = new File(systemFolder, systemFolderFiles);
    if(file.isFile())
    Object fileType = getFileType.invoke(null, new Object[] {
    file
    if("FNDR".equals(fileType.toString()))
    browser = file.toString();
    return browser;
    catch(IllegalArgumentException iare)
    browser = browser;
    errorMessage = iare.getMessage();
    return null;
    catch(IllegalAccessException iae)
    browser = null;
    errorMessage = iae.getMessage();
    return browser;
    catch(InvocationTargetException ite)
    browser = null;
    errorMessage = ite.getTargetException().getClass() + ": " + ite.getTargetException().getMessage();
    return browser;
    browser = null;
    break;
    case 2: // '\002'
    browser = "cmd.exe";
    break;
    case 3: // '\003'
    browser = "command.com";
    break;
    case -1:
    default:
    browser = "netscape";
    break;
    return browser;
    public static void openURL(String url)
    throws IOException
    if(!loadedWithoutErrors)
    throw new IOException("Exception in finding browser: " + errorMessage);
    Object browser = locateBrowser();
    if(browser == null)
    throw new IOException("Unable to locate browser: " + errorMessage);
    switch(jvm)
    case 0: // '\0'
    Object aeDesc = null;
    try
    try
    aeDesc = aeDescConstructor.newInstance(new Object[] {
    url
    putParameter.invoke(browser, new Object[] {
    keyDirectObject, aeDesc
    sendNoReply.invoke(browser, new Object[0]);
    catch(InvocationTargetException ite)
    throw new IOException("InvocationTargetException while creating AEDesc: " + ite.getMessage());
    catch(IllegalAccessException iae)
    throw new IOException("IllegalAccessException while building AppleEvent: " + iae.getMessage());
    catch(InstantiationException ie)
    throw new IOException("InstantiationException while creating AEDesc: " + ie.getMessage());
    break;
    finally
    aeDesc = null;
    browser = null;
    case 1: // '\001'
    Runtime.getRuntime().exec(new String[] {
    (String)browser, url
    break;
    case 2: // '\002'
    case 3: // '\003'
    Runtime.getRuntime().exec(new String[] {
    (String)browser, "/c", "start", url
    break;
    case -1:
    Process process = Runtime.getRuntime().exec((String)browser + " -remote 'openURL(" + url + ")'");
    try
    int exitCode = process.waitFor();
    if(exitCode != 0)
    Runtime.getRuntime().exec(new String[] {
    (String)browser, url
    catch(InterruptedException ie)
    throw new IOException("InterruptedException while launching browser: " + ie.getMessage());
    break;
    default:
    Runtime.getRuntime().exec(new String[] {
    (String)browser, url
    break;
    static
    loadedWithoutErrors = true;
    String osName = System.getProperty("os.name");
    if("Mac OS".equals(osName))
    String mrjVersion = System.getProperty("mrj.version");
    String majorMRJVersion = mrjVersion.substring(0, 3);
    try
    double version = Double.valueOf(majorMRJVersion).doubleValue();
    if(version == 2D)
    jvm = 0;
    } else
    if(version >= 2.1000000000000001D)
    jvm = 1;
    } else
    loadedWithoutErrors = false;
    errorMessage = "Unsupported MRJ version: " + version;
    catch(NumberFormatException numberformatexception)
    loadedWithoutErrors = false;
    errorMessage = "Invalid MRJ version: " + mrjVersion;
    } else
    if(osName.startsWith("Windows"))
    if(osName.indexOf("9") != -1)
    jvm = 3;
    } else
    jvm = 2;
    } else
    jvm = -1;
    if(loadedWithoutErrors)
    loadedWithoutErrors = loadClasses();
    suck my balls

Maybe you are looking for