Determine whether client browser has java installed and can launch applets

前端 未结 4 953
一向
一向 2020-12-06 08:05

I am developing an .aspx page which will ultimately launch an applet after the user clicks on a button (I am using the tag). So, I would like to
4条回答
  •  佛祖请我去吃肉
    2020-12-06 08:27

    You could also try using the object tag.

    With it you can determine what version of java is installed and prompt the user to download it if it does not exist.

    This is a sample object tag taken from an app that I work on, JRE complications required us to run on 1.4.2_03 for compatibility with other applications.

     
    
    
    

    The classid specifies the version of Java you want to load, you can set this to a specific JRE, a specific family i.e. 1.4.X or whatever the latest version is.

    The codebase controls where the user is directed if they do not meet what the classid is set to.

    Note that if a client has 1.5 or higher installed you cannot reference an older JRE due to security constraints, You can override this via a registry setting in windows but I would not recommend it.

    I believe the security is setup so you can only reference an older JRE in the same family. i.e. user has 1.6.0.10 you can reference 1.6.0.1 but cannot go to anything in 1.5.X Though I think I remember seeing a security dialog pop up after 1.6.0.11 where as before it would just default deny the request.

    提交回复
    热议问题