mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
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>
This commit is contained in:
parent
5a5637a431
commit
75e42c6731
@ -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]
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user