getVersion of the Java VM?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cyrill Zadra

    getVersion of the Java VM?

    Hi,

    Does anyone know to request the version of the Virtual Machine on the
    Client (Browser) by JavaScript?

    Cyrill


  • Martin Honnen

    #2
    Re: getVersion of the Java VM?



    Cyrill Zadra wrote:
    [color=blue]
    > Hi,
    >
    > Does anyone know to request the version of the Virtual Machine on the
    > Client (Browser) by JavaScript?
    >[/color]

    In browsers like NN4, NN7 or Opera 7 which support LiveConnect you can do

    if (navigator.java Enabled() &&
    typeof java != 'undefined') {
    alert (java.lang.Syst em.getProperty( 'java.version') )
    }

    --

    Martin Honnen


    Comment

    • Cyrill Zadra

      #3
      Re: getVersion of the Java VM?

      Hi,


      Martin Honnen wrote:
      [color=blue]
      >
      >
      > Cyrill Zadra wrote:
      >[color=green]
      >> Hi,
      >>
      >> Does anyone know to request the version of the Virtual Machine on the
      >> Client (Browser) by JavaScript?
      >>[/color]
      >
      > In browsers like NN4, NN7 or Opera 7 which support LiveConnect you can do
      >
      > if (navigator.java Enabled() &&
      > typeof java != 'undefined') {
      > alert (java.lang.Syst em.getProperty( 'java.version') )
      > }
      >[/color]

      Thanks! Do also know something for IE 5 and above?

      Cyrill

      Comment

      • Martin Honnen

        #4
        Re: getVersion of the Java VM?



        Cyrill Zadra wrote:[color=blue]
        > Hi,
        >
        >
        > Martin Honnen wrote:
        >[color=green]
        >>
        >>
        >> Cyrill Zadra wrote:
        >>[color=darkred]
        >>> Hi,
        >>>
        >>> Does anyone know to request the version of the Virtual Machine on the
        >>> Client (Browser) by JavaScript?
        >>>[/color]
        >>
        >> In browsers like NN4, NN7 or Opera 7 which support LiveConnect you can do
        >>
        >> if (navigator.java Enabled() &&
        >> typeof java != 'undefined') {
        >> alert (java.lang.Syst em.getProperty( 'java.version') )
        >> }
        >>[/color]
        >
        > Thanks! Do also know something for IE 5 and above?[/color]

        You would need to insert a Java applet in the page which exposes a
        method that allows you to question the above property
        java.lang.Syste m.getProperty(' java.version')
        The applet method can then be called from JavaScript (at least with IE/Win)

        --

        Martin Honnen


        Comment

        Working...