Sistema de blogs Diarium
Universidad de Salamanca
Pablo Gallardo's Blog
My professional web log about IT, Cybersecurity & Project Management
 
Tag Archives | jna

How to call native code from a Java application

      Methods to call a native function Method 1. Use Runtime class Runtime class contains the exec method that allows the application to run an operating system command. An example of how to use this method: String command = “echo \”Hello World!\”"; Runtime.getRuntime().exec(command);   Method 2. Use JNI Java Native Inteface (JNI) is […]

Comments { 0 }
Política de privacidad
Studii Salmantini. Campus de excelencia internacional