Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Documentation for High-level API is sparse #80
There is a gap between hello world and the more involced code in Weka or othe projects. Where can I find an example how to actually create objects and call methods? My task has fairly APIs, e.g. calling a self-written wrapper class to Xerces to do XML schema validation.
The two most useful classes, JWrapper and JClassWrapper are not highlighted that well in the docs. Basically, you use JClassWrapper to get an object representing a class and use it to instantiate objects, call static functions and access static variables:
If a static call or constructor returns a Java object, Javabridge wraps that in a javabridge.JWrapper. If you use the low-level functions, you can do that too.
But you are right, docs are sketchy, so I'll leave this as open.