Institute of Information Theories and Applications FOI ITHEA
This paper describes the process of wrapping existing scientific codes in the domain of plasma physics
simulations through the use of the Sun’s Java Native Interface. We have created a Java front-end for a particular
functionality, offered by legacy native libraries, in order to achieve reusability and interoperability without having to
rewrite these libraries. The technique, introduced in this paper, includes two approaches – the one-to-one
mapping for wrapping a number of native functions, and using peer classes for wrapping native data structures.