• Title/Summary/Keyword: 자바 네이티브 인터페이스

Search Result 10, Processing Time 0.029 seconds

Design and Implementation of the Java Native Method Generator (자바 네이티브 메소드 생성기의 설계 및 구현)

  • Kim, Do-Young;Kim, Sang-Hoon
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2000.04a
    • /
    • pp.127-132
    • /
    • 2000
  • 자바 네이티브 메소드(Java Native Method)는 시간 소모적인 작업의 효율적 실행, 플랫폼 종속적인 작업의 수행, 기존에 구성된 라이브러리들의 재사용 등을 위해 제안되었다. 자바 네이티브 메소드의 사용 목적이 실행속도 향상에 있는 경우에는 네이티브 메소드를 구현하기 위해 자바 언어가 아닌 컴파일 방식의 다른 언어를 사용해야한다. 또한 네이티브 메소드를 사용하기 위해서는 자바 네이티브 인터페이스(Java Native Interface)의 개념을 습득해야한다. 이러한 부담을 경감시키기 위해 본 논문에서는 자바 메소드를 네이티브 메소드로 자동 변환하여 주는 자바 네이티브 메소드 생성기(Java Native Method Generator)를 제안하였다. 자바 메소드의 네이티브 메소드 변환은 번역된 바이트 코드로부터 C 언어로 구성된 네이티브 메소드를 자동 생성하도록 구현되었다. 그리고 플랫폼 종속적인 프로그램 작성 시에 있어 생성된 C 코드의 내부에 프로그램을 삽입하는 것만으로 가능하므로 사용자는 자바 네이티브 인터페이스에 대해서는 인식할 필요가 없다.

  • PDF

Java Native Method Generating System (자바 네이티브 메소드 생성 시스템)

  • 김도영;김상훈
    • The Journal of Information Technology
    • /
    • v.3 no.2
    • /
    • pp.13-21
    • /
    • 2000
  • Java native method is proposed for the efficient execution of time-critical code, running of platform dependent job, and reuse of established libraries. If the writing of the Java native method is the speedup of execution time, you must use a compiled language not java language to write native method. Also, you must know the usage of the Java native interface to use native method. To reduce these difficulties, we proposed java native method generator that changes java method into native method automatically. Also, NMG helps programmer to write C implementation for the native method because there Is no need for the concept of JNI.

  • PDF

Integrated Development Environment for Java Native Methods (자바 네이티브 메소드를 위한 통합 개발 환경)

  • Kim, Sang-Hoon
    • The Journal of the Korea Contents Association
    • /
    • v.10 no.7
    • /
    • pp.122-132
    • /
    • 2010
  • As a result of a growing demand for various mobile devices, the demand for application programs on the devices is on the rise. The Java language that is platform-independent rapidly rose as the best programming language for mobile devices. However, the Java has a problem that does not support platform-dependent features needed by the application. To solve this problem, the JNI technology was introduced by Sun Microsystems. Programmers using the JNI to write native methods need to have a lot of knowledge about the JNI and the internal structure of the JVM. Also, the increased load by using a number of JNI functions may decrease software productivity and quality. Demands for tools writing native method without understanding of JNI are progressively increasing. To develop these tools, it is necessary to translate automatically the differences between Java and C/C++. In this study, I suggested a way to overcome differences between both languages and developed JNI editor that is an integrated develope environment on the basis of this.

Design and Implementation of K Virtual Machine Sound API for Embedded Systems (임베디드 시스템을 위한 K 가상 머신 사운드 API 설계 및 구현)

  • Jeon, Shang-Ho;Lee, Cheol-Hoon
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 2006.10a
    • /
    • pp.404-408
    • /
    • 2006
  • 최근 임베디드 디바이스에 여러 가지 장점을 제공하는 자바기술은 필수적인 요소가 되었다. 임베디드 디바이스에 적용되는 자바기술은 J2ME 플랫폼이며, 이는 K 가상 머신(K Virtual Machine)의 핵심인 CLDC(Connected Limited Device Configuration)와 그래픽 유저 인터페이스, 네트워크 API, 사운드 API 등을 명세하고 있는 MIDP(Mobile Information Device Profile)로 구성되어 있다. 이 중 그래픽 유저 인터페이스와 네트워크, 사운드 부분은 구현 시 시스템에 의존적인 부분을 따로 구현해야 하는데, 이는 네이티브(native)함수로 구현할 수 있다. 본 논문에서는 J2ME 플랫폼에서 정의된 사운드 API 의 기능들을 분석하여 임베디드 시스템에 적합한 사운드 API 의 네이티브 함수를 구현하였다.

  • PDF

Using Java Objects in C through the JNI Function Calls (JNI 잠수 호출을 통한 C에서의 자바 객체 사용)

  • 이창환;오세만
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 2002.04b
    • /
    • pp.340-342
    • /
    • 2002
  • JNI는 자바와 네이티브 코드간에 상호 연동을 위해서 사용되는 인터페이스이고, JNI를 이용하면 C에서 자바 객체를 사용할 수 있다 C에서 자바 객체에 대한 연산을 하기 위해서는 객체 연산의 종류에 따른 일정한 JNI 함수 호출 패턴을 이용해야 한다. 사용자가 직접 자바에 대한 연산을 기술하는 경우, 사용자는 복잡한 함수 호출 패턴을 익히고 패턴에 필요한 정보를 직접 입력해야 하며, 패턴의 잘못된 기술과 올바르지 않은 정보의 입력에 따른 오류 발생할 가능성이 높은 문제점이 있다. 본 논문에서는 자바에서 점(".") 연산자를 사용하여 객체에 대해 연산하는 것처럼 C에서도 점 연산자를 사용하여 자바 객체에 대한 연산할 수 있는 방법을 제안하고 구현하였다. 제안된 방법은 점 연산자를 사용한 자바 객체에 대한 연산을 같은 의미를 가지는 여러 JNI 함수 호출로 변환하는 것으로, 사용자가 직접 기술해서 발생하는 여러 문제점을 제거하여 사용의 복잡성과 오류 생성의 발생 가능성을 줄이는 장점을 가지고 있다.

  • PDF

Realtime Network Security System using JNI (JNI를 이용한 실시간 네트워크 보안 시스템)

  • 김건우;장희진;박보석;김상욱
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 1998.10a
    • /
    • pp.544-546
    • /
    • 1998
  • 분산 환경의 발달과 네트워크를 이용한 원거리 컴퓨터 사용이 증가되면서 발생하게 된 전산망 침해 사고를 항상 감시하고 분석하여 자동적으로 대처하기 위한 전산망 보안 시스템이 연구되고 있다. 본 논문에서는 자바네이티브 인터페이스를 이용한 실시간 네트워크 보안 시스템을 제안한다. 자바의 시스템 자원에 대한 엑세스의 한계를 극복하기 위해서JNI 를 C/Java의 이용한 의 연동을 통하여 보다 효율적이고 용이한 정보 수집 및 취약점 분석을 가능하게 한다. 또한 점검하고자 하는 호스트에 보안 정보 수집 모듈을 멀티쓰레드로 상주시킴으로써 실시간으로 원하는 정보를 얻어 선택된 점검 대상에 가해지는 모든 활동들을 분석한다.

  • PDF

MPEG-1 Media Player supporting Streaming Service on Embedded Linux (내장형 리눅스 홈서버에서의 스트리밍 MPEG-1 재생기)

  • 정재일;김미영;신용경;김상욱
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 2001.10b
    • /
    • pp.205-207
    • /
    • 2001
  • 본 논문은 홈 네트워크 환경에서 스트리밍 데이터를 재생하는 MPEG-1 미디어 재생기를 구현한다. 이것은 실시간 운영체제인 내장형 리눅스 상에서 구현하였으며 실시간 응용 프로그램의 일관성과 호환성을 유지하기 위하여 자바 기반의 JNI 언어를 사용한다. JNI는 C언어와 같은 네이티브 코드와 자바 사이의 연동을 가능하게 하는 인터페이스이다. 이렇게 구현된 홈서버용 MPEG-1 미디어 재생기는 사용자에게 홈 네트워크 환경에서 홈서버에 저장되어 있는 멀티미디어 데이터 재생은 물론이고 외부에서 제공되는 멀티미디어 데이터를 실시간으로 서비스 받을 수 있도록 한다.

  • PDF

Translation of Java Bytecode into C code with the JNI (자바 바이트코드로부터 JNI를 사용한 C 코드의 변환)

  • 권혜은;김상훈
    • The Journal of Information Technology
    • /
    • v.4 no.1
    • /
    • pp.1-7
    • /
    • 2001
  • The well-known tradeoff of Java's portability is the inefficiency of its basic execution model, which relies on the interpretation of an virtual machine. Many solutions have been proposed to overcome this problem, such as just-in-time(JIT) and offline bytecode compilers. However, JIT compiler can not avoid the overhead of runtime. since it translate bytecode into native code at runtime. And, pure offline bytecode compiler limits the ability of dynamic class loading. In this paper, we present an approach which preserves the ability to dynamically load bytecode, and is more efficient than JIT. In contrast to existing bytecode-to-C translator using the old NMI, our translator maintain complete compatibility and portability through using the Java Native Interface(JNI) standard. We have designed and implemented an translator for converting bytecode to C code with JNI.. named MyJNItool.

  • PDF

An Agent Language for Real-Time Reactive Robotic Behavior Specification (실시간 반응형 로봇 행위 지정을 위한 에이전트 언어)

  • Kwak, Byul-Saim;Byun, Moo-Hong;Lee, Jae-Ho
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2005.05a
    • /
    • pp.461-464
    • /
    • 2005
  • 본 논문에서는 실시간 반응형 로봇의 행위를 지정하기에 적합한 에이전트 언어를 소개한다. 기존의 BDI 기반의 에이전트 언어를 기반으로 실시간 반응형 로봇의 행위를 지정하는데 적합하도록 개발한 VivAce 에이전트 구조에 대해서 설명하고 이를 이용한 간단한 시뮬레이션을 수행하였다. 또한 VivAce 가 기존의 BDI 에이전트 언어에 비해서 가지는 새로운 특징인 자바 네이티브 언어 지원, 쓰레드 기반의 계획 실행, 다양한 인터페이스를 소개한다.

  • PDF

Smart Phone E-Book Application using Web Common APIs (웹 공통 API를 이용한 스마트폰 전자책 응용)

  • Cho, Soo-Sun
    • The Journal of the Korea Contents Association
    • /
    • v.11 no.11
    • /
    • pp.28-33
    • /
    • 2011
  • Recently the market of smart phone applications grows very fast. And users want more various and rich experiments using enhanced smart phone functions. But the development of smart phone applications is not an easy job. Specially to control smart phone sensors can be realized by using each native programming languages in experts level. Moreover the process needs separate development based on each smart phone OS. Development of the Web-based smart phone application using Web Common APIs, known as 'WebApp', is one of solutions to overcome these problems. The method includes interface constructions with HTML, and Web Common API calls and accesses to smart phone device APIs with Java scripts. In this paper, the experience in development of the smart phone e-book application is introduced, which is implemented with comport and OS independent WebApp development method.