In fact, the differences between system. Load and system. Loadlibrary have been discussed in many places on the Internet
http://stackoverflow.com/questions/7016391/difference-between-system-load-and-system-loadlibrary-in-java
The official document also has a detailed introduction:
In short, system. Load should take the absolute path of so; The system. Loadlibrary should not have a path, and it should not have a lib prefix and a. So suffix. For example, you have an app with a package of com. Test. Demo and a libtest. So
Then, you can load it like this:
1. System. Load (getapplicationinfo(). Nativelibrarydir + “/ libtest. So”)
2. System.LoadLibrary(“test”);
PS:nativeLibraryDir added in API 9.
Similar Posts:
- This application has no explicit mapping for /error, so you are seeing this as a fallback.
- Python:SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in pos…
- [Solved] ImportError:attempted relative import with no known parent package
- FileZilla path must be absolute [How to Solve]
- Securityerror: error # 2148: SWF file (SWF file cannot access this
- [Solution] systemerror: the solution of parent module ” not loaded, cannot perform relative Import
- Python: How to Batch Read the Form Information in Word and output them to Excel file
- Python reads the configuration file Error: configparser.nosectionerror: no section: ‘MySQL’
- selenium.common.exceptions.WebDriverException: Message: unknown Error: cannot find Chrome binary
- Tomcat10 Error: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener