Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #26422 > unrolled thread
| Started by | hakan@lingu.no (Hawkan) |
|---|---|
| First post | 2013-10-25 18:26 +0000 |
| Last post | 2013-10-25 18:01 -0400 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
Calling Fortran code with Photran? hakan@lingu.no (Hawkan) - 2013-10-25 18:26 +0000
Re: Calling Fortran code with Photran? Jeff Higgins <jeff@invalid.invalid> - 2013-10-25 15:08 -0400
Re: Calling Fortran code with Photran? Arne Vajhøj <arne@vajhoej.dk> - 2013-10-25 18:01 -0400
| From | hakan@lingu.no (Hawkan) |
|---|---|
| Date | 2013-10-25 18:26 +0000 |
| Subject | Calling Fortran code with Photran? |
| Message-ID | <e5e3b431f2a98a379d59e30f5694c10b$1@homeunix.nl> |
Hey We have some old Fortran code that we would like to be able to use from a Java application. Have downloaded Photran and I am now looking for how to call Fortran subroutines from a Java program, but their documentation doesn't mention that and I have not been able to find the answer elsewhere on the Web. Anyone have any experience or a reference to a good source of info? Regards.
[toc] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2013-10-25 15:08 -0400 |
| Message-ID | <l4efkb$ft3$1@dont-email.me> |
| In reply to | #26422 |
On 10/25/2013 02:26 PM, Hawkan wrote: > > Hey > > We have some old Fortran code that we would like to be able to use from > a Java application. Have downloaded Photran and I am now looking for how > to call Fortran subroutines from a Java program, but their documentation > doesn't mention that and I have not been able to find the answer > elsewhere on the Web. Anyone have any experience or a reference to a > good source of info? > > Regards. > It seems like a search on the string "call Fortran subroutines from a Java program" should produce some usable results.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-10-25 18:01 -0400 |
| Message-ID | <526aea41$0$305$14726298@news.sunsite.dk> |
| In reply to | #26422 |
On 10/25/2013 2:26 PM, Hawkan wrote: > We have some old Fortran code that we would like to be able to use from > a Java application. Have downloaded Photran and I am now looking for how > to call Fortran subroutines from a Java program, but their documentation > doesn't mention that and I have not been able to find the answer > elsewhere on the Web. Anyone have any experience or a reference to a > good source of info? JNI does not support Fortran only C and C++. So what you need to do is: your Java code->Java class with native methods->C or C++ wrapper following JNI convention->your Fortran code Calling C/C++ from Java via JNI is well documented. Calling Fortran from C/C++ is usually also well documented. Arne
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web