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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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