Dear Gurus, We have a requirement in our embedded consumer product to integrate Java application.The product has got some C code already running. (Theres a command based application used for testing purpose in C language).For providing a demo,we need to integrate Java with this existing application. We dont want to reinvent both(Both application and Test tool) in same language as its quite time consuming.Can someone point me in right direction on how this can be done?
Following are ideas coming to my mind:
1)I searched net and it gives me a tutorial stating about JNI(Java Native interface) which is needed to interface java to other languages like C,C++. 2)From JNI tutorial,it seems we need DLL support to do this,but the tutorial is for PC and not embedded product.I am not sure whether we need DLL support.The link containing tutorials is below:
As I am new to Java,it would be helpful if some of you who have done similar work let me know what all is needed environment wise as well as todo programming stuff. Adding to this the whole integrated application will run on Linux based paltform on my embedded product.
Looking farward for all your replies and advanced thanks for the same, Regards, s.subbarayan