반응형
아래처럼 하면, Eclipse에서 jni header를 얻을 수 있다.
[출처] http://stackoverflow.com/questions/9940381/how-to-generate-jni-header-file-in-eclipse
일단, Eclipse의 Menu-Run-External Tools Configurations 를 실행한다.
그다음 부터 아래처럼 따라하면 된다.
Use the following panel to define a new external tool for javah.exe.
Point "Location" to the javah.exe tool.
Set "Working Directory" to
${workspace_loc:/${project_name}/bin}
Set "Arguments" to:
-classpath ${project_classpath} -v -d ${workspace_loc:/${project_name}/src} ${java_type_name}
To run the tool, highlight the java source file in package explorer and run the tool.
Press F5 to refresh th project to see the newly generated file.
반응형
'android' 카테고리의 다른 글
contentprovider 를 이용한 서로다른 app간의 데이터 조회. (0) | 2013.12.23 |
---|---|
illegal character: 65279 (0) | 2013.06.12 |
Broadcast to Stopped process (0) | 2013.05.18 |
나를 호출한 activity로 돌아가기. (0) | 2013.03.28 |
NDK compile definition (0) | 2013.01.31 |