For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2006 > Calling Fortran from Java on Windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Calling Fortran from Java on Windows
David

2006-01-10, 9:58 pm

Anyone with experience or knowledge of calling Fortran with EXTERNAL
subroutines from JAVA?

The Fortran is a subroutine similar to lsode that will call back to Java for
a Jacobean. I have Lahey Fortran 90.

Thanks in advance.


pacman

2006-01-12, 7:04 pm

You can't directly call Fortran routines from JAVA. JAVA provides C
binding. Fortran also provides C binding. Therefore, you can use C
binding as a pass through to Fortran (in both directions). I do that
all the time. You have to be careful if you are passing arrays and
strings (standard issues between C and Fortran). Other than that it
works great. Take a look at following links for further info:

http://www.csharp.com/javacfort.html

http://www.math.ucla.edu/~anderson/...aInterface.html

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com