Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Fortran Communication With JAVA (New Programer)

843829Jun 2 2008 — edited Jun 18 2008
Few points to make at first before I get completely flamed off this website from my first post:

-I have searched this topic and understand I can call fortran code in my java by first linking it to C++ then calling it with JNI and there are many tutorials using this method.
-I am not a C++ programmer or Fortran programmer. I have recently learned java for a job that I have obtained.
-Learning how to use this method seems very time consuming and complicated.

A little background:

My current job is to create a GUI for a FORTRAN program that a fellow employee of mine has written, this code is used for very complicated and in depth mathematical calculations. I have decided to write this GUI in Swing and I am currently in the process of learning Swing.

My concern:

I have around 4 months to write and complete this GUI and am concerned that I will have trouble communicating between fortran and java.

My question:

Is there a way to use a text file to pass variable values between java and fortran, then calling for a fortran program to start execution do it's calculations, out put it's solutions into a notepad then have the java GUI resume operation and display them or what ever it needs to do with the solution?

I'm sorry if this would have been better posted in a different section of this form.

Please reply with any thoughts or ideas wether or not this is possible or even if you may have an idea where more information on doing this might be located.

Thank you very much.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2008
Added on Jun 2 2008
7 comments
400 views