2009-06-15 4 views
0

저는 JNI 애플리케이션을 작성 중이며 현재 아키텍처에 맞는 올바른 바이너리 라이브러리를 다운로드해야합니다. 코드에서이 정보를 검색 할 수있는 방법이 있습니까?Java에서 아키텍처 가져 오기

저는 ARM, x86 또는 다른 아키텍처를 실제로 알아야합니다. 이 자바 6SE에서 작동

종류와 관련,

개빈

답변

4

java.lang.System.getProperty("os.arch")가 도움이 될 것입니다 - "팔", "AMD64"를 제공 등.

0

:

 
public class ListProperties 
{ 
    public static void main(String[] argv) 
    { 
     System.getProperties().list(System.out); 
     // These are only examples of obtaining specific properties 
     System.out.println(System.getProperty("user.name")); 
     System.out.println(System.getProperty("java.library.path")); 
    } 
} 
관련 문제