Stefan Andritoiu
d2bbfe376d
java: bypass version check for packages that don't have version specified
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2017-04-02 20:00:18 +02:00
Stefan Andritoiu
03b548c33b
java: Added version information & checks to ensure Java version matches Native version
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-01 15:21:12 +01:00
Henry Bruce
14617d0f36
java: Throw exception if mraa_init() fails
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
2016-03-22 18:04:57 +00:00
Andrei Vasiliu
029e08669c
java: Changed JNI version to 1.6
...
This change is needed to compile/run with OpenJDK 7, as well as with
OpenJDK 8.
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:04:57 +00:00
Henry Bruce
44b2367fdc
java: Updated gpio.c to use JNI functions set in mraa_lang_func
...
This is a re-design of commit 0041801. mraa_lang_func_t structure has been
added (similar in design to mraa_adv_func_t) that points to JNI functions
implemented in src/java/mraajni.c. Functions are set by libmraajava.so,
see wrapper entry in src/java/mraajava.i. As gpio.c now uses these
functions, language specific #ifdef code has been removed as JNI code
is only called if functions are defined (i.e. not NULL)
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:04:57 +00:00
Henry Bruce
9d497e08cd
java: mraa jni library now dynamically links to libmraa
...
libmraajava.so was statically linking to mraa object files causing
duplicate mraa platform instances if a UPM Java module was also loaded.
JNI functionality has been moved into src/java/mraajni.c. JVM object is
now set when JVM is loaded; see updates to src/java/mraajava.i.
This was necessary as the JVM object cannot be directly referenced from
mraa as it will not be available when building C/C++ examples.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:04:57 +00:00
Andrei Vasiliu
df8d471cfb
java: Changed JNI version to 1.6
...
This change is needed to compile/run with OpenJDK 7, as well as with
OpenJDK 8.
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-01 16:22:54 +00:00
Petre Eftime
c63e38a57e
java: Migrate IsrCallbacks to Java's Runnable class
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-21 15:28:03 +00:00
Stefan Andritoiu
d80e4295aa
mraajava.i: The director now uses a GlobalRef instead of a WeakRef to the IsrCallback object
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-12-14 15:33:34 +00:00
Stefan Andritoiu
93839d4865
java: Added auto load library code to the SWIG interface file
...
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-11-30 09:57:58 +00:00
Petre Eftime
013c04c7b9
mraajava.i: Ignore read/write functions (in UART)
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-01 14:30:43 +01:00
Petre Eftime
35760929db
mraajava.i: Initialize mraa when library is loaded by the JVM
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-15 15:26:16 +01:00
Petre Eftime
c9c6ac785a
mraajava.i: Return array properly for SPI write
...
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-09-15 15:26:16 +01:00
Alexander Komarov
4302f0d0c3
java: Added Java SWIG binding creation
...
%init directive is not supported in java so move %init to js/py interface files
Signed-off-by: Alexander Komarov <alexander.komarov@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-04-24 12:12:11 +01:00