Force browser's Java version in a multi-version environment?

Most of our machines run only JRE 1.4.2_08, but there is a sizable part of the population that have both 1.4.2_08 and 1.5 installed for compatibility reasons. Is there any way to configure the browser, the plugin, or the content of the web pages themselves in such a way that certain applications use one version, and certain applications use the other?
Hope this is clear enough.
Thanks,
Andrew

After digging through the forum a bit, I have found that I can use the following switch in my shortcut to SQLDeveloper to achive this.
C:\oracle\sqldeveloper\sqldeveloper.exe -J-Dide.user.dir="%USERPROFILE%\.SQLdeveloper"
I tried to modify the SQLDeveloper.boot but that did not seem to work correctly. The above mentioned switch updates the "c:\documents and settings\%username%\.sqrdeveloper" with all password related information and SQL history that was important to meet our security requirements. We updated the shortcut in the AllUsers profile and this seems to work globally.
The only bad thing about this approach is that anyone can go into %AppData%\sqldeveloper.exe and run it without using the shortcuts. This would bypass the security precaution.
Is there a better way to approach this?
Regards,
Tom

Similar Messages

  • I'm trying to use Microsoft Livemeeting 2007 - browser and java issues

    My browser and java versions are apparently too new, and I can't seem to figure out how to download and use past versions to properly use the Livemeeting software. I know Livemeeting is outdated software, but this is what the client I'm working with is using, and I need to be able to join web conferences for document viewing/sharing, etc. Any help would be most appreciated, as I've spent hours trying to figure this out, but nothing seems to be working.

    Maybe try this??
    Microsoft Livemeeting 2007 not working
    Otherwise you may want to try posting on the Microsoft Mac forums:  http://answers.microsoft.com/en-us/mac

  • Multi-threads will run better on multi-Processores environment?

    Are there any proof to say that Multi-threads will run better on multi-Processores environment?
    Will Java run better on multi-Processores environment? Are there any proof?
    Thank in advance

    Are there any proof?The proof is in the pudding, so to speak. The best thing to do is to benchmark your application on single and multi-processor machines.
    It should be noted that there are reports of threading problems with Java on multi-processor machines. I haven't seen the problems myself, nor do I remember the exact problems people were seeing (and on what OS/Hardware) but if you search these forums you should be able to find out the details.

  • How to check Java Version while showing applet in browser?

    Hello All,
    We have an application which has client and server mechanism.
    Our application can be accessed by any internet browser on any machine of the network but there is only one server in the network.
    One of the functionality in the application is described below.
    We do have one link in our application webpage. When user clicks on that link, the request goes to the server component which is running on different machine. Now server process the request and in responce we do show some images in applet window at the customer webpage.
    Now problem is, when the client machine browser has some lower version of Java, we are not able to show the image but only shows a blank page.
    What we want to do is to show some specific warning message when we find that the Java version at client machine is lower than required.
    Can anybody please let me know how can I achieve this?
    Thanks in Advance,
    Jenish

    Sun's latest versioning solution for applets and JWS apps. is [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html]. I also offer the [Java Version Checker Applet|http://pscode.org/jre.html] as an alternate way of ensuring a minimum major version of the JRE.

  • Browser v/s JAVA version

    Hi,
    How can I know what Java version can handle a Browser?
    I mean, for example , A machine with IExplorer 5.0 ,windows 98, without SDK installed, what kind of Applet could run in it?
    Is any option, preferences or site where I can find this answer?
    thanks.

    You can test it with the following applet:import java.awt.Graphics;
    public class VersionTest extends java.applet.Applet {
        public void paint(Graphics g) {
         g.drawString("Java version: " + System.getProperty("java.version"), 10, 20);
    }

  • Java Version for PI 7.1

    Hi all,
    Can anyone please tell  me what is the exact recommended JRE version for PI 7.1 with enhancement package1.
    thanks in advance
    Jagruthi

    Hi,
        I think PI 7.1 works fine with java version 1.5 and 1.6 (not sure..though)
    May be what you can check is un-install the existing Java version (old versions if so) and open the Home page of the PI
    it will show the version needed (try this) for PI 7.0 it was showing for me which version to download in google chrome browser...
    HTH
    Rajesh

  • Problem with loading native library in java version "1.5.0_05"

    My application uses a native coded drawing. With java version 1.4.xx it was working just fine but with java 1.5.xx it gives the following error at the time of loading native library:
    java.lang.UnsatisfiedLinkError: /home/abyzov/tmp/friend32-1.6.02/libfriend.so:
    /home/abyzov/tmp/friend32-1.6.02/libfriend.so: undefined symbol: XtWindowToWidget
    I assumed that java loads all necessary X-libraries at start up but it seems to be not true for version 1.5.xx. Does anybody now about this kind of problems? Should I report it as a bug?

    I have this exact same problem. I developed an application all along using 1.4.2_08 to be exact no problems. I was forced to switch to 1.5.0_06, now when I try to run the app I get:
    java.lang.UnsatisfiedLinkError: <path to library>/libcomlib.so: <path to library>/libcomlib.so: undefined symbol: yp_get_default_domain
    I have tried compiling it in both 1.4.2_8 and 1.5.0_06 and it compiles perfectly but when I run with 1.5.0_06 it messes up.
    If you found the problem with this or anyone else has any advice please let me know.

  • 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

  • JAAS & JGSSAPI 's Java version

    Hi,
    JAAS version info: http://java.sun.com/j2se/1.5.0/docs/guide/security/jaas/JAASRefGuide.html
    i would like to know in which Java version is JGSSAPI written?
    and if there a SPNEGO authentication API to validate the service ticket that was aquired with a browser in older version like Java2 ?
    Thanks

    hi wangwj,
    thanks for ur reply. I'm intended to use SPNEGO for a browser authentification against Kerberos to access a webapp by SSO that was written in Java 1.4 and should stay. Is there a possibility to unpack the service ticket that was gotten with SPNEGO with Java 1.4 ?
    This link says JGSSAPI exists since Java 5: http://dev.taglab.com/sites/taglab-public/support/spnego.html
    Can u tell me then where to find info about the existing of it before that?
    I need it because i'm writing a work about it and must give authenticated sources for my Info.
    Many Thanks
    Alim

  • Java versions for OIM install

    Hi,
    Last time when I installed OIM, everything worked fine, but I was unable to open the workflow manager applet. I think maybe I used the wrong JRE/JDK. Please read below the environment I am using and suggest which Jave version should be used.
    OS: Windows 2003 Server
    Browser: IE
    OIM: 9.1
    Application Server: Weblogic (latest version)
    1. Installing Oracle Weblogic, which JRE to use?
    a> 1.6 Sun Java already shipped with Weblogic
    b> 1.6 Oracle JRockit shipped with Weblogic
    c> any other Java version
    2. Installing OIM Server, in the screen where it asks for Application server information, in the field where it asks the JDK used for application server install, which one to use?
    a> The one I choose above in 1
    b> any other Java version (1.4.2_12 or _15 or something else)
    3. Installing OIM client, when it asks for JRE to use with design console, which Java to use?
    a> Install JRE bundled with OIM
    b> JDK 1.4.2_12 or _15 or any other Java version
    4. Now, when I use the OIM, what should be the Java version that my browser should be configured to launch the Workflow Manager applet?
    Thanks in advance.
    -Harmeet

    The release notes for your oim version contains information about what JRE versions are supported.
    http://www.oracle.com/technology/software/products/ias/files/idm_certification_101401.html#BABGBGHI
    Sun JDK 1.6.0_10 or higher JRockit 1.6.0_05 or higher seems to be what you are looking for.
    Best regards
    /Martin

  • Close parent window of Mozilla browser from Java

    Hi All,
    I want to open a URL in a controlled browser from java stand alone application. I was able to do this in Netscape of UNIX OS. The method followed is given below.
    1. Launch a temporary HTML file which contains Javascript (to launch the URL in a controlled window). This is done using --- Runtime.getRuntime().exec() method.
    2. Close the parent HTML file on 'onLoad' using Javascript. (self.close).
    [ I tried window.close() & top.close() also.]
    Now I need to support the same for "Mozilla" also. But mozilla just ignores the close() command of Javascript.
    1. Is there any alternative way to close the parent window in Mozilla browser ?
    2. Is there any way to close the parent window from java by using 'Process' class/ threads/ ??
    3. Any other way???
    Note : I am using the intermediate window for using Javascript. (controlling the browser properties). Since Java cannot communicate to Javascript directly, I am forced to have such an intermediate HTML file.
    Thanks in advance.
    surekha_Venugopal.

    Some more details :
    Mozilla browser will close a window using window.close() command, but only if the window is opened by the script. If not it will not close it.
    Here, I am opening the window from Java application. That is why closure of the window is failing.
    Trying to find a solution.
    Regards,
    Surekha_Venogopal

  • Ensuring the Correct Java Version is Installed

    I recently finished some work where I rewrote an applet. The applet used to require only Java 1.1; however, because I used Swing instead of the AWT, Java 2 is required to run now. It will run under 1.4.2, but I am afraid that some customers might need to upgrade their Java installation. I found some articles on how to auto-install/update the JRE when launching JNLP applications. However, I would like to keep the applet in the browser, so using Web Start is not ideal.
    Is there a way to check the version of java installed on a user's computer, and if it is not high enough, automatically download and install it?
    If that isn't possible, is there a way to simply redirect them to the download page?
    Thanks for the help. I am quite lost in all of this.

    I recently finished some work where I rewrote an
    applet. The applet used to require only Java 1.1;
    however, because I used Swing instead of the AWT,
    Java 2 is required to run now. It will run under
    1.4.2, but I am afraid that some customers might need
    to upgrade their Java installation. I found some
    articles on how to auto-install/update the JRE when
    launching JNLP applications. However, I would like
    to keep the applet in the browser, so using Web Start
    is not ideal.
    Is there a way to check the version of java installed
    on a user's computer,Yes, in your Applet.init() do a System.getProperty("java.version");This will tell you the version the user is running and if it is not the version you want call
    getAppletContext().showDocument(new URL("http://SomeWhere.com"));Good Luck!
    (T)

  • Unable to install Java Version 7

    I currently have Java Version 6 loaded. I downloaded the latest version of Java Version 7. It was a pkg installer. When I ran it it said I couldn't install it because I didn't download it from the Apple Store. Also there is no Java panel in the System Preferences like in Moultanl Lion. It looks like any Package Installer wont run unless it came from the Apple Store

    Glad to help. But seriously, since Java is a known and popular vector for cyberattack, I'd suggest leaving it disabled in your browser(s) unless it's necessary for a valid reason. Also, having allowed apps from anywhere, I'd suggest switching back to the earlier, more secure setting until another such need arises to avoid a questionable app slipping in under the wire.

  • Get Java Version from Applet to JSP

    Hi Forum!
    I am trying to collect client information with a jsp page and put the information into a html form.
    Besides the request information and some javascript screensize and flash version information I'd like to get the client's Java Version and Vendor with System.getProperty("java.version").
    I assume I can get this info only with an applet.
    How do I pass the Applet's version result to the JSP so I can view it with HTML and insert it into the form?
    Thanks a lot,
    Tom

    You would use liveconnect and the JSObject class to connect the Java code in the applet to JavaScript in the browser to populate the HTML:
    http://www.gsu.unibel.by/pub/javascript/ch19_06.htm
    http://www.apl.jhu.edu/~hall/java/JavaScript-from-Java.html

  • Web browser in Java

    I am wondering if there is any way to add a web browser to your Java application.
    I found http://www.javio.com/webwindow/webwindow.html but you have to pay for it in order to be able to use it( except a trial version that expires in a hour :s). But I didn't find another web browser on the internet ... :x
    So any idea's / tips ?

    you can fireup any web-browser from java... just Runtime.exec() it... the trick will be getting it to go to your URL.

Maybe you are looking for

  • Bug while deleting values in form and it's parent member is dynamic calc

    Hi, I'm having a problem that seems to be a bug. I am trying to delete the values of member A11 in the following hierarchy, in a Planning Form: A (Dynamic Calc) |_A1 (Dynamic Calc) |__A11 (Store) |_A2(Dynamic Calc) !_A21 (Store) However when I save t

  • Printing current pdf to Adobe PDF printer

    I have Windows XP and Adobe Acrobat 10 on my computer. I am able to take a 60 page pdf file from Internet Explorer, hit print to Adobe PDF, choose pages 4-6 to print, rename the file and save this document to my desktop. The pdf pops up and it's just

  • Generating partner profile in idoc

    hello experts, When i am generating partner profile, following error is generated. Port could not be created RFC destination 0000000810 not specified for system 00000000810. enter the rfc destination and restart the generation. what is solution for t

  • Final Fantasy X/X-2 HD Remaster for Vita - Art Cards

    Sony announced that pre-orders for FFX/X-2 HD for the PS Vita will come with exclusive art cards.  Can we confirm that Best Buy will also be participating in this, and if so can we have the product description updated?

  • Currency Key Transformation (Special Purpsose Ledger to DSO)

    Hi Gurus, I would like to carry out transformation from Special Purpose Ledger Total Records Data source (3FI_SL_E2_TT) to  DSO. Transformation should be based on: 1-Target DC should be populated if 0curtype is 0 2-Target Document Currency should be