Abstract
JNI is a linkage method to other languages such as C/C++ which enables the Java to do the platform-dependent specific tasks and also, it can be used to reuse the existing libraries and programs. However, the complex and difficult steps are required to use JNI and it is Inconvenient to manipulate Java source and C/C++ source separately. We design and implement the JPP (Java Preprocessor) that enables the Java source and C/C++ source to handle in a same source file and reduces the required steps so as to use JNI easily.
JNI는 자바가 플랫폼 의존적인 특수한 기능을 이용할 수 있게 하고, 기존의 라이브러리와 프로그램을 재사용할 수 있게 하기 위해 C/C++와 같은 다른 프로그래밍 언어와 연결되는 방법이다. 그러나 JNI를 사용하기 위해서는 복잡하고 어려운 과정을 거쳐야 하며 자바 소스와 C/C++ 소스를 따로 다루어 불편하였다. 본 논문에서는 JNI를 쉽게 사용하기 위해서 동일한 파일에 자바 소스와 C/C++ 소스를 함께 작성할 수 있게 하고 JNI 사용에 필요한 단계들을 줄인 JPP(Java PreProcessor)를 설계하고 구현하였다.