Accessing the method from c++ in java code