mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-29 14:15:33 +03:00 
			
		
		
		
	java: Added auto load library code in upm SWIG interfaces
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
		 Stefan Andritoiu
					Stefan Andritoiu
				
			
				
					committed by
					
						 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
			
				
	
			
			
			 Mihai Tudor Panu
						Mihai Tudor Panu
					
				
			
						parent
						
							500e14663b
						
					
				
				
					commit
					dddba3e8a4
				
			| @@ -6,3 +6,14 @@ | ||||
| %} | ||||
|  | ||||
| %include "tcs3414cs.h" | ||||
|  | ||||
| %pragma(java) jniclasscode=%{ | ||||
|     static { | ||||
|         try { | ||||
|             System.loadLibrary("javaupm_tcs3414cs"); | ||||
|         } catch (UnsatisfiedLinkError e) { | ||||
|             System.err.println("Native code library failed to load. \n" + e); | ||||
|             System.exit(1); | ||||
|         } | ||||
|     } | ||||
| %} | ||||
		Reference in New Issue
	
	Block a user