How do I detect which kind of JRE is installed — 32bit vs. 64bit

前端 未结 9 1165
离开以前
离开以前 2020-11-27 03:47

During installation with an NSIS installer, I need to check which JRE (32bit vs 64bit) is installed on a system. I already know that I can check a system property \"su

9条回答
  •  伪装坚强ぢ
    2020-11-27 04:49

    There might be both 32 bit and 64 bit JVM's available on the system, and plenty of them.

    If you already have dll's for each supported platform - consider making a small executable which links and run so you can test if the platform supports a given functionality. If the executable links and run, you can install the corresponding shared libraries.

提交回复
热议问题