[英]Can you check whether your OS and java runtime are 32-bit or 64-bit from within your program?
I was told there is a System Environment Property File i could check, however, it hasn't yielded any definite results so far. 我被告知有一个系统环境属性文件,我可以检查,但是,到目前为止它还没有产生任何明确的结果。
Basically I need to see what version of the OS and Java i'm running so I can copy the correct DLLs to the run directory. 基本上我需要查看我正在运行的操作系统和Java版本,以便将正确的DLL复制到运行目录中。 As always, a better solution is appreciated.
一如既往,我们赞赏更好的解决方案。
You can check JRE version checkin os.arch property of System class 您可以检查System类的JRE版本checkin os.arch属性
http://mark.koli.ch/2009/10/javas-osarch-system-property-is-the-bitness-of-the-jre-not-the-operating-system.html http://mark.koli.ch/2009/10/javas-osarch-system-property-is-the-bitness-of-the-jre-not-the-operating-system.html
JNLP - Java Web Start - allows for specifying DLL's and shared libraries per architecture. JNLP - Java Web Start - 允许为每个体系结构指定DLL和共享库。 This allows you to do centralized distribution with a local icon for the users to click.
这允许您使用本地图标进行集中分发,以供用户单击。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.