First of all, what is CPP? Do you mean C++, or is CPP something else? Assuming you mean C++, then what is a "C++ event"? It isn't a standard part of the C++ programming language (as far as I know - it's been a long time since I've used C++ for a serious project).
Can you explain in more detail what you want to do?
To interface Java with native code written in C or C++, you can use JNI (Java Native Interface).
actually there are 2 softwares,one which is build on C++ and other on Java,i want to create a coupling between the 2 softwares so the data passed from the C++ software can be understood by the Java software
Yes, JNI is an answer, but there are also other possibilities. Which solution is good for your particular situation depends on what you want to do exactly.
With JNI, you can call code written in C++ directly from your Java code, or the other way around. You could also make the C++ and the Java programs two separate programs that are running alongside each other, and make them communicate via a socket connection. You could also make the C++ program write its data to a database or to a file, and make the Java program pickup the data from there.
So, can you explain in more detail what you want to do? How should the C++ and Java code communicate? Should the communication be synchronous or asynchronous?
Joined: Aug 18, 2006
thank you all for your knowledge, i am now very sure that JNI is the solution,the software which i am developing takes data/events in real time. Now my issue is that i want to pass this data/events from software#1 which happens to be developed in C++,to software#2 which is developed in Java . I just want that software#2 should understand everything data/events coming its way