Add advanced lib/app examples in Java/C++.