From 75e42c6731c5453e73f2d224da0360ceb733e8d3 Mon Sep 17 00:00:00 2001 From: Stefan Andritoiu Date: Mon, 7 Mar 2016 19:56:52 +0200 Subject: [PATCH] java: eliminated loadlibrary code from examples Signed-off-by: Stefan Andritoiu Signed-off-by: Mihai Tudor Panu --- examples/java/Ad8232Example.java | 12 ------------ examples/java/Th02Example.java | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/examples/java/Ad8232Example.java b/examples/java/Ad8232Example.java index 3b6102b8..d707fcb5 100644 --- a/examples/java/Ad8232Example.java +++ b/examples/java/Ad8232Example.java @@ -25,18 +25,6 @@ import upm_ad8232.AD8232; public class Ad8232Example { - static { - try { - System.loadLibrary("javaupm_ad8232"); - System.loadLibrary("mraajava"); - } catch (UnsatisfiedLinkError e) { - System.err.println( - "Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + - e); - System.exit(1); - } - } - public static void main(String[] args) { // TODO Auto-generated method stub //! [Interesting] diff --git a/examples/java/Th02Example.java b/examples/java/Th02Example.java index f2a97c47..3cb06ae7 100644 --- a/examples/java/Th02Example.java +++ b/examples/java/Th02Example.java @@ -25,18 +25,6 @@ import upm_th02.TH02; public class Th02Example { - static { - try { - System.loadLibrary("javaupm_th02"); - System.loadLibrary("mraajava"); - } catch (UnsatisfiedLinkError e) { - System.err.println( - "Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + - e); - System.exit(1); - } - } - public static void main(String[] args) { // TODO Auto-generated method stub float temperature = 0;