Browse Source

java: eliminated loadlibrary code from examples

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Stefan Andritoiu 9 years ago
parent
commit
75e42c6731
2 changed files with 0 additions and 24 deletions
  1. 0
    12
      examples/java/Ad8232Example.java
  2. 0
    12
      examples/java/Th02Example.java

+ 0
- 12
examples/java/Ad8232Example.java View File

@@ -25,18 +25,6 @@ import upm_ad8232.AD8232;
25 25
 
26 26
 public class Ad8232Example {
27 27
 
28
-	static {
29
-		try {
30
-			System.loadLibrary("javaupm_ad8232");
31
-			System.loadLibrary("mraajava");
32
-		} catch (UnsatisfiedLinkError e) {
33
-			System.err.println(
34
-					"Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" +
35
-							e);
36
-			System.exit(1);
37
-		}
38
-	}
39
-
40 28
 	public static void main(String[] args) {
41 29
 		// TODO Auto-generated method stub
42 30
 		//! [Interesting]

+ 0
- 12
examples/java/Th02Example.java View File

@@ -25,18 +25,6 @@ import upm_th02.TH02;
25 25
 
26 26
 public class Th02Example {
27 27
 
28
-	static {
29
-		try {
30
-			System.loadLibrary("javaupm_th02");
31
-			System.loadLibrary("mraajava");
32
-		} catch (UnsatisfiedLinkError e) {
33
-			System.err.println(
34
-					"Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" +
35
-							e);
36
-			System.exit(1);
37
-		}
38
-	}
39
-
40 28
 	public static void main(String[] args) {
41 29
 		// TODO Auto-generated method stub
42 30
 		float temperature = 0;