James Aylett
2015-Jan-02 12:19 UTC
[Xapian-devel] [Xapians-devel] Project: Java Bindings Improvements
Please do not email individuals about Xapian; we have a mailing list so more people can both help and benefit from discussions. Xapian-devel added to cc. On 2 Jan 2015, at 01:21, Gaurav Mishra B.Tech., ECE, IIT(BHU),Varanasi (INDIA) <gaurav.mishra.ece11 at iitbhu.ac.in> wrote:> In past days i worked with one of the java API i.e. JAVA ME and used > wrapper class for wrapping some java classes and function that will > be accessed through JavaScript.Through JavaScript via Rhino?> As mentioned in the project description some of the function are not > working properly and some of the them still to be include.So,Is there > any reference or code with the help of that i can understand how the > whole thing works here or any repository link that help in > understanding the actual working ?You should start by getting an overall understanding of how Xapian works. I strongly recommend working through http://trac.xapian.org/wiki/GSoC%20Guide which will get you up to speed with Xapian itself. For a look at the current state of the Java bindings, see xapian-bindings/java/SmokeTest.java; ignore the commented code. However there?s immediately one thing that jumps out from there, which is lack of exception handling in the bindings. (Also, that test file should probably be converted to use jUnit, which should make it more readable.) For more information about how SWIG bindings work, please see the SWIG documentation, which is linked from the project description. J -- James Aylett, occasional trouble-maker xapian.org
Gaurav Mishra B.Tech., ECE, IIT(BHU), Varanasi (INDIA)
2015-Jan-02 14:07 UTC
[Xapian-devel] [Xapians-devel] Project: Java Bindings Improvements
yes sir, i used rhino JavaScript engine. Okay sir i will go through according to your instruction. Regards, Gaurav On 1/2/15, James Aylett <james-xapian at tartarus.org> wrote:> Please do not email individuals about Xapian; we have a mailing list so more > people can both help and benefit from discussions. Xapian-devel added to > cc. > > On 2 Jan 2015, at 01:21, Gaurav Mishra B.Tech., ECE, IIT(BHU),Varanasi > (INDIA) <gaurav.mishra.ece11 at iitbhu.ac.in> wrote: > >> In past days i worked with one of the java API i.e. JAVA ME and used >> wrapper class for wrapping some java classes and function that will >> be accessed through JavaScript. > > Through JavaScript via Rhino? > >> As mentioned in the project description some of the function are not >> working properly and some of the them still to be include.So,Is there >> any reference or code with the help of that i can understand how the >> whole thing works here or any repository link that help in >> understanding the actual working ? > > You should start by getting an overall understanding of how Xapian works. I > strongly recommend working through http://trac.xapian.org/wiki/GSoC%20Guide > which will get you up to speed with Xapian itself. > > For a look at the current state of the Java bindings, see > xapian-bindings/java/SmokeTest.java; ignore the commented code. However > there?s immediately one thing that jumps out from there, which is lack of > exception handling in the bindings. (Also, that test file should probably be > converted to use jUnit, which should make it more readable.) > > For more information about how SWIG bindings work, please see the SWIG > documentation, which is linked from the project description. > > J > > -- > James Aylett, occasional trouble-maker > xapian.org > >-- Gaurav Mishra