mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 00:54:21 +03:00 
			
		
		
		
	Added the JAVA_JNI_LOADLIBRARY macro for the jniclasscode pragma included in _upm.i for all java SWIG interface files.
This commit is contained in:
		@@ -7,13 +7,4 @@
 | 
			
		||||
 | 
			
		||||
%include "tsl2561.hpp"
 | 
			
		||||
 | 
			
		||||
%pragma(java) jniclasscode=%{
 | 
			
		||||
    static {
 | 
			
		||||
        try {
 | 
			
		||||
            System.loadLibrary("javaupm_tsl2561");
 | 
			
		||||
        } catch (UnsatisfiedLinkError e) {
 | 
			
		||||
            System.err.println("Native code library failed to load. \n" + e);
 | 
			
		||||
            System.exit(1);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
%}
 | 
			
		||||
JAVA_JNI_LOADLIBRARY(javaupm_tsl2561)
 | 
			
		||||
		Reference in New Issue
	
	Block a user