다음은 64bit VM과 32bit VM의 몇가지 차이점입니다.
1) Write Once, Run Anywhere는 platform 이나 bit에 영향받지 않음.
2) Java는 C와 달리 int, long type같은 primitive 데이터형 size가 고정이므로, 문제 미발생
3) 단, JNI로 C 모듈을 호출하여 사용한다면 primitive 데이터형 사용시 주의할 것
따라서 어플리케이션 개발 플랫폼으로 64bit JDK를 선택하셔도, 본 사이트를 통해 배포한 라이브러리를 사용하시는 것은 문제가 없습니다.
When writing Java code, how do I distinguish between 32 and 64-bit operation?
There's no public API that allows you to distinguish between 32 and 64-bit operation. Think of 64-bit as just another platform in the write once, run anywhere tradition. However, if you'd like to write code which is platform specific (shame on you), the system property sun.arch.data.model has the value "32", "64", or "unknown".
Will 32-bit native code work with a 64-bit VM?
No. All native binary code that was written for a 32-bit VM must be recompiled for use in a 64-bit VM. All currently supported operating systems do not allow the mixing of 32 and 64-bit binaries or libraries within a single process. You can run a 32-bit Java process on the same system as a 64-bit Java process but you cannot mix 32 and 64-bit native libraries.
Write Once, Run Anywhere
다음은 64bit VM과 32bit VM의 몇가지 차이점입니다.
1) Write Once, Run Anywhere는 platform 이나 bit에 영향받지 않음.
2) Java는 C와 달리 int, long type같은 primitive 데이터형 size가 고정이므로, 문제 미발생
3) 단, JNI로 C 모듈을 호출하여 사용한다면 primitive 데이터형 사용시 주의할 것
따라서 어플리케이션 개발 플랫폼으로 64bit JDK를 선택하셔도, 본 사이트를 통해 배포한 라이브러리를 사용하시는 것은 문제가 없습니다.
==[참고]===================================================
다음은 http://java.sun.com 에 정의되어 있는 내용을 일부 발췌한 것입니다.
There's no public API that allows you to distinguish between 32 and 64-bit operation. Think of 64-bit as just another platform in the write once, run anywhere tradition. However, if you'd like to write code which is platform specific (shame on you), the system property sun.arch.data.model has the value "32", "64", or "unknown".
No. All native binary code that was written for a 32-bit VM must be recompiled for use in a 64-bit VM. All currently supported operating systems do not allow the mixing of 32 and 64-bit binaries or libraries within a single process. You can run a 32-bit Java process on the same system as a 64-bit Java process but you cannot mix 32 and 64-bit native libraries.
보다 자세한 사항은 다음 URL을 참고하시기 바랍니다.
참고URL : http://java.sun.com/docs/hotspot/HotSpotFAQ.html#64bit_detection