Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Important Update: Community Platform Migration​. Learn more​>

Calling Java from Fortran

longden_loo
Beginner
1,123 Views
Most of the JNI docs and examples I see on the web show how to call Java from C++/Fortran, but I want to do the reverse ... my main app (C++ and Fortran) intends to call a Java method and pass it some input strings, and upon its completion, expects to receive a text string (or array of strings) back from the Java method. So the main app has to take care of starting the JVM and any other initializations.

Is there a specific reference or link or "Hello World" example anyone can point me to?

I'm not averse to reading the Sun JNI docs, but as you all know, sometimes a well-aimed article or example can save a few hours of reading and trial/error. Thx.

- Longden
0 Kudos
0 Replies
Reply