Change JRE versions when application executes

How do I change the active JRE when my application runs? I am working in a complex environment, where some apps use JRE 1.2.2 and others 1.3. Both JREs are installed on the desktop machines.
We are using Zenworks to deploy the software, but I need to be sure that the correct JRE is running and, if it is not, enable the correct version.
Is there a registry entry to change? I need to automate the Java control panel, essentially. Is there some sort of command-line approach to changing the active JRE? I need a script that will run either within Java or, preferable, at the windows level. Perhaps it could be another Java program. Any suggestions?

Here is a brute force method. As part of your shortcut set the classpath to include the appropriate JRE as the first concatenation. Your deployment tool "should" be able to build that for you reasonably easily from a script of some type. Hope this helps.

Similar Messages

  • [Windows] file.url throw error when application executable in root directory

    Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
    If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
    No matter what file url property you try to get.
    It's a big problem when you distribute your application on CD disks or flash drive.
    I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
    Thanks.

    I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?

  • Change JRE version that firefox uses

    Trying to run applets that are being compiled using Java 8. I had JRE 1.8 installed on my machine but when I run the site I'm making, the embed applets don't work and what I have below is what pops up which says JRE 1.7 is being used. How can I change this so 1.8 is used???
    Java Plug-in 10.55.2.14
    Using JRE version 1.7.0_55-b14 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Adam

    There has been a change in the Java security settings, see:
    *http://kb.mozillazine.org/Java#Java_security_prompts
    *"What should I do when I see a security prompt from Java?":<br>http://www.java.com/en/download/help/appsecuritydialogs.xml
    If you visit a website regularly then a possible workaround is to add the URL to the Java Exceptions Site List, see:
    *"Why are Java applications blocked by your security settings?":<br>http://www.java.com/en/download/help/java_blocked.xml
    *"How can I configure the Exception Site List?":<br>http://www.java.com/en/download/faq/exception_sitelist.xml

  • Change product version under application component

    Hi all,
    how can i change the product version under application component at integration scenario?
    You have the possibility to "Display/Change Application Component" if you click with your mouse (right button) on the application component bar but under application component type you aren't able to change anything.
    Thanks in advance!
    Jochen

    Hi,
    You cannot change the product version.
    When you Righ Click on the Application Component and say change, the only things that you can change are
    1. Role,
    2. Integration Process
    3. Further Attributes.
    if you need to change the product version, you need to Right Click --> Insert Application COmponent and then select the correct product version.
    Regards
    Bhavesh

  • Specifying JRE version when starting CRM On Demand

    I am trying to find a way to specify what jre version to use when logging into CCA. Our users have multiple jre version including newer versions that are not compatible with CCA. They have open java and disable the newer versions in order to get CCA to work. Of course this causes issues when they run other programs that require the newer versions (what a mess!).
    Is this possible and can someone tell me how to do this? Any help would be greatly appreciated!
    Thanks in advance!

    This could be a problem with mounting of CD.
    If you are not using Solaris Volume Management software. Execute the following commands as root user.
    prompt> mkdir /cdrom
    prompt> mount -r -F hsfs device_name /cdrom
    prompt> exit
    Regards
    Ranga
    null

  • Send an email when application execute a query

    I use Jdeveloper 11.1.1.3.0
    The application is a web application.
    How can to sent an email, from web application, when the user clicks the button search in af:query?
    Which componet should I use?
    Thanks

    af:query has a property QueryListener which points into the bindings. You can however use you own listener in a bean , execute the normal EL (copied from the original QueryListener) and send your mail before or after you execute the original query listener.
    Frank Nimphius published an example how to do this here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/67-queryform-in-popup-253861.pdf
    It's not exactly what you are looking for but it shows the technique.
    Timo

  • Deploy Shared Variables when Application Executes

    This is an option in the Project build specification in LV2010.  I am finding that the check mark to signify that I want to include a lvlib in the build and have it auto deploy will not stay check marked.
    I have tried to make sure a NSV reference appears in the startup vi and also have tried to 'always include' the library file in the build.  I have attached an image of the dialog in question.  The checked box in the listbox will go away when I close the build window or if I do the build and then reopen the build spec.  This seems like a bug.  Any way around it?

    Sachsm,
       Thank you for reporting this unexpected behavior. I have filed a Corrective Action Request #279570 with R&D to be fixed in a future version of LabVIEW. 
       Unfortunately the only workaround for now is to only exercise this option right before building (i.e. do not close the window and reopen it to build) the application. 
       Again thank you for bringing this to our attention.
    Regards from Austin,
    Ben J.
    National Instruments
    Applications Engineer

  • Jre version in R12

    Hi All,
    I am doing R12 upgradation. As a part of that I have to install JRE in my ORACLE_HOME/appsutil. Its version has to be same as that of application. Pls suggest
    1. How can I find my JRE version of application ?
    2. How I will install the JRE in DB home ?

    My version is 1.6.0_07
    $ cat $FORMS_WEB_CONFIG_FILE|grep sun_plugin_version| cut -c 1-35
    sun_plugin_version=1.6.0_07
    $ echo $FORMS_WEB_CONFIG_FILE
    /opt/egapc2d/inst/apps/EGEBC2D_etad546/ora/10.1.2/forms/server/appsweb.cfg
    $ {print $2}' $ADMIN_SCRIPTS_HOME/java.sh` -version;" <
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
    But at the site following Java version are available. Pls. suggest what to do.
    JDK/JRE 6.0 (latest release 6.0.09) – [RNs]

  • Java is blocked. Don't know why. Error: Application Blocked Java Plug-In 10.51.2.13 using JRE version 1.7.0_51-b13 Java HotSpot(TM) Client VM

    I keep receiving this message when trying to use http://www.exodus-chats.org/DolTerias . it uses a java based chat system, and won't allow me to open the application. I've tried checking through my options menus, but I've found no reason as to why this can be blocked. The only thing I've come up with is my plug ins, but it doesn't allow me to change anything to allow the app to be used.
    Application Blocked
    Details: Java Plug-In 10.51.2.13 using JRE version 1.7.0_51-b13 Java HotSpot(TM) Client VM

    Starting in Java 7 Update 51, sites that would normally be blocked based on your Java Security settings can be added to an Exceptions list, via the Java Control Panel. See the Java Help page [http://www.java.com/en/download/faq/exception_sitelist.xml How can I configure the Exception Site List?] for details.
    Ref: http://kb.mozillazine.org/Java#Java_security_prompts

  • A fatal error when I execute two application

    Hi! I have a maven java application, which count mouse clicks and key presses with jnativehook. when I launch application (jar file) and it starts counting events, I launch second application in IDE, and when it starts counting events, my first app is crash exit, with error message:
    # A fatal error has been detected by the Java Runtime Environment:
    #  SIGSEGV (0xb) at pc=0x0000000000002196, pid=6756, tid=140255629047552
    # JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C  0x0000000000002196
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    # An error report file with more information is saved as:
    # /home/beknazar/Documents/newjar/tracker-1.0-SNAPSHOT/hs_err_pid6756.log
    # If you would like to submit a bug report, please visit:
    #   http://bugreport.sun.com/bugreport/crash.jsp
    Aborted (core dumped)
    please, help me

    Hi again:
    What happens when you type "java -version"?
    Answer:
    java version "1.2"
    Classic VM (build JDK-1.2-V, native threads)
    What is the value of your %PATH%?
    Answer:
    Path=E:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Archivos comunes\Adaptec Shared\System;C:\Archivos de programa\Executive Software\DiskeeperLite\;C:\Archivos de programa\QuickTime\QTSystem\;C:\Archivos de programa\Java\jdk1.6.0_13\bin;C:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\;e:\Microsoft SQL Server\90\Tools\binn\;C:\BITWARE\;C:\Archivos de programa\Archivos comunes\Ahead\Lib\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    Have you considered running Linux?
    Answer: No, because Linux is more complex.
    Additional information:
    My Operating System is: Microsoft Windows XP Profesional Version 2002, Service Pack 3, running on an Intel Pentium 4, CPU 2.4 Ghz, RAM: 2.23 Gb

  • I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Is Apple aware of this problem? No longer supported?

    My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
    I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
    Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
    Thanks in advance for any help you can provide!
    Abbreviated Java Console output:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    load: class ZeroApplet.class not found.
    java.lang.ClassNotFoundException: ZeroApplet.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)
    load: class JavaToJS.class not found.
    java.lang.ClassNotFoundException: JavaToJS.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)

    I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).

  • How can I do change File Character when I export application (4.2.1.00.08)

    Hello,
    Please, help me!
    I need to change "File Character" when I export application with Apex 4.2.1.00.08 version, but this option, is not possible. The ComboBox already select with
    "Unicode UTF-8]', but I need "ISO-8859-1 - Europa Ocidental", how can I do change it?
    Thanks

    Please register for a "real" user account rather than the anonymous user7266483.
    You can not change it on the export...this is simply set to whatever is in effect in the DB.
    However, it is totally unnecessary to change it on export. If the database into which you need to import the exported application is "ISO-8859-1 - Europa Ocidental", at the time you begin to import, it will default to "ISO-8859-1 - Europa Ocidental". You need to change this to the character set under which it was exported. In this case, it was "Unicode UTF-8".
    It does not matter that you export and import in the same character set. It only matters that you correctly set the import to match how it was exported.
    -Joe

  • Changed my version of acrobat from 8 to X Pro, now I get this message when down loading an acrobat file.

    Hi I changed my version of acrobat from 8 to X Pro, now I get this message when down loading an acrobat file. I tried to create a new down load folder, did not help. Cannot find where tochange the association in preferences.
    C:\DOCUME~1\Owner\LOCALS~1\Temp\Image Honda MPR Oct - Dec 2011-2.pdf could not be opened, because the associated helper application does not exist. Change the association in your preferences.
    Thanks,
    [email protected]

    Message was edited by: leroydouglas
    better yet, try this solution:
    https://discussions.apple.com/message/12351186#12351186

  • How do I change the pdf version when combining files

    I am using Acrobat 9 Standard and need to change the default pdf version when combining multiple files, it actually save in 1.6 but would need to lower to 1.4 to be compatible with a client. So far, I changed the .joboptions with no luck. Any idea?
    Thanks

    Thanks, we already do this but I would like to set it and forget it... Theres always someone that will forget the extra step

  • Language specific characters changes when .irpt executed.

    Hi,
    When i execute .irtp page, language specific characters changes to strange signs.
    How can it be solved?
    Thanks.

    Hi Jeremy,
    Below is meta tags for Turkish
    lt & meta http-equiv="Content-Type" content="text/html; charset=windows-1254" / & gt
    lt & meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-9"  / & gt
    lt & meta http-equiv="Content-Language" content="tr" / & gt
    I tryed but result is the same.
    I think .irpt has no Turkish support.
    Thanks.

Maybe you are looking for

  • Moving from iphone 3gs to iphone 4

    Hello.  Currently I have an iPhone 3GS and my wife has a black iPhone 4 purchased at the end of last year.  With the recent price drops on the iPhone 4 at Wal-Mart, I want to buy a new white one and let my wife use that one and then I would use her o

  • Mac detects external monitor but no picture

    I recently tried hooking up my 17 inch LCD gateway monitor to my 13 inch mac. My mac detects it and lists it under display properties however it does not actually have a picture on the monitor. The gateway just stays black or powers on and then goes

  • Fields ess mandatory

    H i expert I have a problem, in the table V_T588MFPROPC,  I put de fields that I want to show in te NWBC . It´s ok, but I put a field mandatory example (p0105-usrid_loong)  in the parameter of table u201Cis usedu201D, the field continue visible and o

  • Want to learn SAP-HANA

    Hi All, I am a SAP-BO consultant and want to learn SAP-HANA. But i am totally confused how to start and how to relate SAP-HANA to BO. Can any one please guide me on this. Thanks in advance

  • SAP SRM Contracts Vs SAP CLM Contract

    Hi SAP Gurus, Can you guys please tell me the difference between SAP SRM Contracts and SAP CLM Contracts. In which factors SAP CLM serves better than SAP SRM?? Why SAP CLM came into existence when we have SRM Contracts? What are the draw back and wha