Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
How to use Java to talk to Fortran program?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Simon Brooke, post: 1997173"] OK, approaches. (i) Have the Fortran program open a port and listen on it. Have the GUI talk to the Fortran program on that port. You'll need to develop a protocol, and parsing the protocol at both ends is an overhead, but it saves an awful lot of tricky code. This is what I would do because it looks easiest to me. (ii) Use a Fortran compiler that compiles to JVM. University of Tenesse have one called f2j, but I don't know how complete it is: [URL]http://icl.cs.utk.edu/f2j/overview/index.html[/URL] (iii) Use the GNU C compiler to compile Fortran for the JVM. Sounds bizarre, but should be possible as GCC has JVM as one of the processors it supports and Fortran 77 as one of the languages it supports. (iv) Craft glue code using JNI. This is the 'official' way of doing it, but my guess is that it would quickly get dark and dirty. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
How to use Java to talk to Fortran program?
Top