Menu

JNI

Help
2011-10-13
2013-03-18
  • nenad cikic

    nenad cikic - 2011-10-13

    Hello again,
    My project needs to interface with windows dll (it is provided by the croatian national bank). I am looking how to link this to java and it seems that i have to use JNI. I have to compile nother c project that acts like bridge between the to worlds. Have you done anything like that? Can it be done from Clarion or i have to use visual studio?

    thanks
    nenad

     
  • Andrew Barnham

    Andrew Barnham - 2011-10-14

    Slightly off topic from clarion2java.  Yep, JNI is the way to proceed, I have used JNI in the past; it will solve the problem but it is usually considered a last resort technology when programming java.  Typically you cannot interface a DLL directly into java, you need to create a JNI based bridging DLL ; so some sort of C/C++ compiler is necessary. MinGW should be sufficient if you don't want to pay for Visual C++. 

    I recently, in my clarion2java app, had to interface into a COM object, to hook into Quickbooks.  There is a java project, also on sourceforge, called jacob that does this.  No JNI programming, it is done for you already. So if the bank provide a COM/ActiveX based hook, then this might work well for you.

     
  • nenad cikic

    nenad cikic - 2011-10-16

    They provide for windows platform a dll and for linux more exe that communicate by reading and writing ascii files. I do not think i can negotiate with them anything:(

    thanks for both answers
    nenad

     

Log in to post a comment.

Auth0 Logo