bytedeco / javacpp

The missing bridge between Java and native C++
Other
4.47k stars 582 forks source link

MicroEJ JNI support #290

Open eix128 opened 5 years ago

eix128 commented 5 years ago

There is new framework to run java on microcontrollers. http://www.microej.com This framework has JNI support: http://www.microej.com/mix-embedded-java-and-c-and-reuse-your-legacy-c-code-base/

Can we use this framework with javacpp ? Or is it easy to add this framework support ? So we can use javacpp on microcontrollers too... It will be so powerful

saudet commented 5 years ago

Sure, JavaCPP outputs JNI code that we can compile with pretty much any C++ compiler. Let me know if you encounter any specific issues! Obviously it would be nice to add platform properties to JavaCPP to make it easier to use, but that should be about it.

saudet commented 5 years ago

BTW, the platform properties are here: https://github.com/bytedeco/javacpp/tree/master/src/main/resources/org/bytedeco/javacpp/properties We can check what Loader.getPlatform() returns and create a file with the same name.