none
Switching between multiple Java versions RRS feed

  • Question

  • We would like to be able to switch between Java version for web applications in Internet Explorer 10. Is there a way to do that?

    Currently, we are specifically interested in 1.6.0_23 and 1.7.0_45

    Other threads on this subject have been sparse and not helpful. 8-)

    Thanks.

    Thursday, January 9, 2014 6:20 PM

Answers

  • Hi,

    the version attribute of the <script> tag is depreciated.

    http://docs.webplatform.org/wiki/html/elements/script

    you use feature testing eg.

    (element.feature)?'has feature':'does not have feature';

    eg. (window.createElement)?'DOM 2':'Quirks';

    or document.implementation.isSupported

    (see prototype.js)

    see modernizr.com (modernizr.js)

    to determine browser capabilities.

    you can use compatibility view x-ua meta to provide backwards compatibility in MSIE browsers for features that are not supported in your client browser.

    Post questions about html, css and scripting to the IE web Development forum with a link to your website or a mashup.

    Thx.


    Rob^_^

    Thursday, January 9, 2014 11:35 PM

All replies

  • Hi,

    the version attribute of the <script> tag is depreciated.

    http://docs.webplatform.org/wiki/html/elements/script

    you use feature testing eg.

    (element.feature)?'has feature':'does not have feature';

    eg. (window.createElement)?'DOM 2':'Quirks';

    or document.implementation.isSupported

    (see prototype.js)

    see modernizr.com (modernizr.js)

    to determine browser capabilities.

    you can use compatibility view x-ua meta to provide backwards compatibility in MSIE browsers for features that are not supported in your client browser.

    Post questions about html, css and scripting to the IE web Development forum with a link to your website or a mashup.

    Thx.


    Rob^_^

    Thursday, January 9, 2014 11:35 PM
  • Unfortunately, like others, I have searched the Internet in vein because 90% of what is out there is not useful.

    After numerous hours of research and testing, the batch file below is a workaround and has worked on numerous applications.

    Until Oracle or whoever comes up with a more professional solution.

    This solution is based upon installing Java as family installations (not static).

    By renaming the Java 7 folder, you are forcing the system to use 1.6.

    Select the appropriate batch file prior to launching your app.

    Java16-ON.bat

    -------------------

    @echo off

    taskkill /im javaw.exe /f
    taskkill /im jqs.exe /f

    ren "%ProgramFiles%\Java\jre7" jre7.x

    dir "%ProgramFiles%\Java"
    echo.
    pause

    ------------------------------------------------------------------------

    Java17-ON.bat

    --------------------

    @echo off

    taskkill /im javaw.exe /f
    taskkill /im jqs.exe /f

    ren "%ProgramFiles%\Java\jre7.x" jre7

    dir "%ProgramFiles%\Java"
    echo.
    pause

    Friday, March 7, 2014 4:31 PM
  • Forgot to add support for 64 bit.

    Java16-ON.bat

    ---------------------


    @echo off

    taskkill /im javaw.exe /f
    taskkill /im jqs.exe /f

    if exist "%ProgramFiles%\Java\jre7" (
      ren "%ProgramFiles%\Java\jre7" jre7.x
      dir "%ProgramFiles%\Java"
    )

    if exist "%ProgramFiles(x86)%\Java\jre7" (
      ren "%ProgramFiles(x86)%\Java\jre7" jre7.x
      dir "%ProgramFiles(x86)%\Java"
    )

    echo.
    pause

    --------------------------------------------------------------

     Java17-ON.bat

    --------------------

    @echo off

    taskkill /im javaw.exe /f
    taskkill /im jqs.exe /f

    @echo off

    taskkill /im javaw.exe /f
    taskkill /im jqs.exe /f

    if exist "%ProgramFiles%\Java\jre7.x" (
      ren "%ProgramFiles%\Java\jre7.x" jre7
      dir "%ProgramFiles%\Java"
    )

    if exist "%ProgramFiles(x86)%\Java\jre7.x" (
      ren "%ProgramFiles(x86)%\Java\jre7.x" jre7
      dir "%ProgramFiles(x86)%\Java"
    )

    echo.
    pause

    Friday, March 7, 2014 5:21 PM
  • What the hell does that gibberish mean in relation to the question?
    Wednesday, March 23, 2016 9:05 AM
  • Old thread, but Nick_PCS answered the question correctly with that "gibberish." I needed to force IE to use an older version of Java and the techniques solved my problem.

    Thanks Nick_PCS!!!



    Wednesday, March 22, 2017 7:13 PM