Re: Calling Fortran code with Photran?
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
X-Hamster-Info: Score=0 ScoreLoad=0 ScoreSave=0 Received 131026104505
Xref: localhost comp.lang.java.softwaretools:542
X-Received: by 10.42.134.10 with SMTP id j10mr2281606ict.33.1382698531114;
Fri, 25 Oct 2013 03:55:31 -0700 (PDT)
X-Received: by 10.50.66.101 with SMTP id e5mr36346igt.12.1382698530812; Fri,
25 Oct 2013 03:55:30 -0700 (PDT)
Path: news.ett.com.ua!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.85.216.88.MISMATCH!i2no33285960qav.0!news-out.google.com!z6ni91518pbu.0!nntp.google.com!i2no33285939qav.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: comp.lang.java.softwaretools
Date: Fri, 25 Oct 2013 03:55:30 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=111.119.254.218;
posting-account=yCM_fgkAAACpow8vL8GgaDJ03esgSiP7
NNTP-Posting-Host: 111.119.254.218
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9be87f04-8e7e-4dea-b45e-30a4d72dc066@googlegroups.com>
Subject: Finally java class file encryption possible.
From: Java Encryptor <java.encryptor@gmail.com>
Injection-Date: Fri, 25 Oct 2013 10:55:30 +0000
Content-Type: text/plain; charset=ISO-8859-1
X-Old-Xref: news.ett.com.ua comp.lang.java.softwaretools:701
Distribute java program by encrypting it and keep your source code secure.
Java Encryptor encrypts class files into .vin files.
You will get an Java Executer (.exe) to execute the .vin (encrypted class) files.
Your source code is secure.
Each Java Encryptor is coded with unique key combination.
Try one sample java example encrypted using two diffrent Java Encryptors.
visit http://encryptjava.blogspot.in/