开发者

Integrate applications using multiple programming languages into a Java application

Is there an open source application that could integrate applications using multiple progra开发者_如何转开发mming languages into a Java application?


Some options:

  • Languages that can be compiled and run into the JVM, like python and javascript. But you might have a difficult time if the programs where not built from the beggining to run inside the JVM.

  • JNI, java's native interface. This allows interfacing Java with native (i.e. C) languages. If your other language is not C or C++ then probably you will need to write a native interface for them too.

  • API. Using web services or socket communication have the two languages communicate.

  • Sharing data. Having both programs share files or databases in a common format.


Not quite sure what you mean, but there are several languages that could be compiled to Java byte code and run under JVM.


http://en.wikipedia.org/wiki/Java_Native_Interface

The Java Native Interface is a programming framework that allows Java code running in a Java Virtual Machine to call and to be called by native applications (programs specific to a hardware and operating system platform) and libraries written in other languages, such as C, C++ and assembly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜