简体   繁体   中英

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 CIe 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 live even simple using JNA

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

You can use

  • File system (cross file communications). ie you have one shared file which can be read/written by both apps
  • Network (SOAP/REST)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM