java communication with Pascal application Is it Possible

I have been asked by someone to implement communication between a Java application and a Pascal application. I have very little knowledge of Pascal. Is it possible? If so, can someone provide some guidance? Currently I am clueless at this point.


  • Sure this is possible.

    In case if you simply need to use a set of functions implemented on Pascal you can use JNI with the same way as C. I.e. create a DLL for Windows or shared library for UNIX using Pascal with the JNI specific function names. You can use pas2jni instead of javac -h (or javah) or make your work simpler with JNA library

    If you interested with multi-process integration, i.e. you have one app written on Java and another app written on Pascal you can use SOAP or REST API.