android

Eclipse에서 jni header 만들기.

toyship 2013. 7. 11. 16:27
반응형

아래처럼 하면, 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}

enter image description here

To run the tool, highlight the java source file in package explorer and run the tool.

enter image description here

Press F5 to refresh th project to see the newly generated file.

반응형