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++).
The official SWIG documentation s
Actually this is possible and I have implemented it based on inheriting a virtual class from C++ to Java.
You can find solution in chapter "24.5 Cross language polymorphism using directors" of Java part of SWIG document.
Based on the rather strange wording of the statement I'd say what you want isn't generally possible. "...call up from C++ to Java when wrapping C++ virtual methods." The "...call up..." leads me to believe you're calling protected or public members of an inherited interface and, "...when wrapping C++ virtual methods," leads me to conclude you can only do so when you're overriding an inherited interface. So it sounds like the actual use case is very narrow.
But then, I'm just basing this on the wording of the text you've pasted. It may or may not help you.