I wanna do a nice visualization of some data but I want the visualization to stop when the user presses the space bar (actually, what I exactly want to do is that when the user presses space bar, Java (or processing) would capture that and send a ctrl+c and then an a key) to a certain program that is executing in my system..
I have a program written in prolog that is going to perform some operations on files and I want to make it communicate with processing.
What I want to do is, once my prolog file finished doing some operation with strings, I want them to be stored in an XML file and then telling to processing that that file has already been written and that processing can already grab that string in the file and do whatever (of course, prolog should close the file I guess so that processing could open it?) having some sort of synchronization.
I do not really know whether that is possible or not to get it, and I would like you guys to give me a hand on this!
I am trying to start a piece of code I wrote some time ago and that worked, but after formatting my computer I can't start it anymore, and I would please like to get some help.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at JMyron.JMyron.<clinit>(JMyron.java:14)
at Myron_simpleCamera.setup(Myron_simpleCamera.java:39)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
I have tried both Processing 1.0.7 which is the original version in which the code was written in, but I have also tried Processing 1.2.1, both with the same result after following the instructions to install the library -I even installed WinDVG, althought didnt install OpenCV, not sure if it's needed.