I am working with a c process that reads an ambient sensor via stream, each second it reads 1000 samples about light,Temperature and sound of the surrounding ambient, now I would like to read this data by means of a java program I know there are solutions such as share memory but I'm looking for some good tutorial, guide, example that can help me to achieve my task.
Asked
Active
Viewed 1,105 times
0
-
2Questions asking us to **recommend or find a book, tool, software library, tutorial or other off-site resource** are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. – DavidPostill Oct 01 '14 at 11:30
-
@DavidPostill - there are just three technologies I can recommend as an answer. Do you know more? – bobah Oct 01 '14 at 11:44
-
@bobah Of course, check the list I've put up here: https://github.com/bytedeco/javacpp#introduction – Samuel Audet Oct 03 '14 at 06:00
-
@SamuelAudet - I was referring to the mainstream/prod-ready – bobah Oct 03 '14 at 07:45
1 Answers
0
You can go plain JNI, or use one of JACE or JNA, whichever suits best based depending on whether you want to call C++ code from Java or other way around. All three are well documented on the net.

bobah
- 18,364
- 2
- 37
- 70
-
Dear, thank you for your response, my doubts are related to synchronization between the two processes... to be clear, if it would be a pure-java with a sync queue it would be very easy to achieve but in this case i do not know... – angelius Oct 01 '14 at 12:24