title: How to call Java from C++ using SWIG?
body: <p>I am able to call C++ code from Java using SWIG but I can't find any documentation on how to do the reverse (call Java from C++). </p>
  
  <p>The official SWIG documentation says (<a href="http://www.swig.org/Doc1.3/Java.html#java_overview" rel="noreferrer">http://www.swig.org/Doc1.3/Java.html#java_overview</a>):
  "SWIG enables a Java program to easily call into C/C++ code from Java. Historically, SWIG was not able to generate any code to call into Java code from C++. However, SWIG now supports full cross language polymorphism and code is generated to call up from C++ to Java when wrapping C++ virtual methods."</p>
  
  <p>But I can't find where it says how to do it! Any help is greatly appreciated. Thank you.</p>