I can't find any references to Java stuff at the link you mentioned. By the way, the code is C, not C++.
I'm not sure if that is what you meant, but integrating Java and C/C++ code involves the Java Native Interface (JNI). I was once engaged in heavy JNI work about 6 years ago at college but have almost entirely forgotten most of it, because I have forgotten most of C/C++ myself.
The coverage of JNI has been stripped of the Sun Java tutorial for many years, probably due to lack of interest. If you want to find more information, you will need to search for older documents. I dug this up in an early version of the Java tutorial:
Integrating Native Code and Java Programs
Good luck, because it is very easy to crash the JVM with JNI.