Java Supports Native Language Code , Does this mean that i can Execute a C language Code Using the java program . If yes then will this be a machine dependent code or Machine independent code and as JVM applied many security related restrictions on the java code so will they effect the code that is in C Language ?
Will The Restrictions applied By JVM be applicable on the Native C language code also ?
Yes, the project will be machine-dependent. If the native library/code cannot be linked to by that JVM (for example, if you have a Windows JVM and an ELF/.so library, or a 32-bit JVM and 64-bit library), then System.loadLibrary(String)
will fail with an UnsatisfiedLinkError
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.