java 64位程序,的Java编程的64位JVM

Few Questions :):

How to identify what JVM is currently installed ? (64 bit / 32 bit)

Do I need to do some considerations while programming for 64 bit JVM target Platform ?

Can my Java code work on 32 bit as well as 64 bit JVM ?

How to run my Java App on 64 bit JVM ?

How to identify what JVM is being used for my Java App ?

解决方案

Normally a 64 bit jvm will identify itself as such.

32/64 bit Considerations I have seen:

address space - if you're not expecting to address more that 1.3Gb of memory then you won't see a difference

native libraries - if you're loading any JNI libs, then they will need to match your VM architecture. For example, don't try loading 32-bit native libraries from a 64-bit vm (without -d32 type of flags)

Yes, the same code will run on both JVMs.

System Property "sun.arch.data.model" has the 32/64 flag I think.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值