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

How to modify Java Compiler Version

  Why would I need to change the Java compiler version? We may tend to think that we should always use the latest version of the Java compiler. However, if the compiler version is newer than the virtual machine version, system will trigger an error when trying to run. So we may want to modify […]

Comments { 0 }

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