| e p chandler 2005-08-26, 7:57 am |
|
William Z. wrote:
> Has anyone written any java bindings into fortran. I'd like to add some
> monitors into my fortran code so that I can observe it's progress in my
> java gui.
>
> Any good resources much appreciated.
try "JAPI" - "Java Application Programming Interface"
http://www.japi.de/
It runs on Win32, Linux or Solaris, and has bindings for a variety of
languages. Source is available.
Minor problems:
1. You must have a JRE installed.
2. For some, AWT programming is primitive.
3. Binaries are for G77. 2.95.2 is an old version. I've tried it with a
G77 3.x and it works. I don't know about g95 or gfortran, but there is
source.
4. It uses sockets to communicate with the Java runtime. On Windows XP
- I have SP2 - each time a program is run it brings up a warning from
my Windows "firewall". You either need to permit each program to run or
you need to open a specific port in the settings. Sorry I can't
remember which.
5. It's old. 2003. It may not be maintained. The best documentation is
in German.
HTH
Elliot
|