mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
java: removed loadLibrary preamble 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:

committed by
Mihai Tudor Panu

parent
1667569560
commit
9bf184129e
@ -25,15 +25,6 @@
|
||||
//NOT TESTED!!!
|
||||
public class DS1307Sample {
|
||||
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_ds1307");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("error in loading native library");
|
||||
System.exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
static private void printTime(upm_ds1307.DS1307 rtc) {
|
||||
System.out.print("The time is: " + rtc.getMonth() + "/" + rtc.getDayOfMonth() + "/"
|
||||
+ rtc.getYear() + " " + rtc.getHours() + ":" + rtc.getMinutes() + ":"
|
||||
|
Reference in New Issue
Block a user