How to detect whether Java runtime is installed or not

后端 未结 4 570
遇见更好的自我
遇见更好的自我 2021-01-02 06:12

I program windows applications using Java and this builds a \".jar\" file not an \".exe\" file. When a client computer with no java runtime installed opens the \".jar\" file

4条回答
  •  情歌与酒
    2021-01-02 06:19

    A small applet in a html page which cancels a redirect to a "Please install Java" page.

    EDIT: This is almost the only really bullet-proof way. Any registry key containing JavaSoft is most likely only for the Sun JVM and not any other (like IBM or BEA).

提交回复
热议问题