开发者

Can you check whether your OS and java runtime are 32-bit or 64-bit from within your program?

开发者 https://www.devze.com 2023-01-09 05:44 出处:网络
I was told there is a System Environment Property File i could check, however, it hasn\'t yielded any definite results so f开发者_如何学编程ar.

I was told there is a System Environment Property File i could check, however, it hasn't yielded any definite results so f开发者_如何学编程ar.

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. As always, a better solution is appreciated.


You can check JRE version checkin os.arch property of System class

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. This allows you to do centralized distribution with a local icon for the users to click.

0

精彩评论

暂无评论...
验证码 换一张
取 消