DOI QR코드

DOI QR Code

Design and Implementation of JPP(JNI Preprocessor)

JPP(JNI 전처리기)의 설계 및 구현

  • Lee, Chang-Hwan (Dept.of Computer Engineering, Dongguk University) ;
  • O, Se-Man (Dept.of Computer Engineering, Dongguk University)
  • 이창환 (동국대학교 대학원 컴퓨터공학과) ;
  • 오세만 (동국대학교 컴퓨터공학과)
  • Published : 2002.03.01

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)를 설계하고 구현하였다.

Keywords

References

  1. The Java Language : An Overview, White Paper, Sun Microsystem, 1996
  2. Java Native Interface, Javasoft, 1997
  3. Compione, Walrath, Huml, and Tutorial Team, 'Java Tutorial continued,' Addison-Wesley, 1998
  4. Rob Gordon, 'Essential JNI,' Prentice-Hall, 1998
  5. 이창환, 오세만, 'C/C++에서 자바객체 이용을 위한 인터페이스', 정보처리학회 '99 춘계학술발표논문집, 1999
  6. 이창환, 오세만, '자바객체를 사용할 수 있는 자바스크립트 해석기의 설계 및 구현', 정보과학회 '99 추계학술발표논문집, 1999
  7. 오세만, 이양선, 김상훈, 고광만, 자바입문 개정판, 생능출판사, 2000
  8. Elliot Berk, C. Scott Ananian, JLex : A Lexical Analyzer Generator for Java(TM), http : //www.cs.princeton.edu/~appel/modern/java/JLex/
  9. Scott E. Hudson, CUP Parser Generator for Java, http : //www.cs.princeton,edu/~appel/modern/java/CUP/
  10. Nik Shaylor, JPP-A preprocessor for the Java language, http : //www.geocities.com/CapeCanaveral/Hangar/4040/jpp.html, 1996