fortran and java
Can any one let me know ,is it possible to execute a fortran code from java swing?
<google-proxy> http://www.math.ucla.edu/~anderson/JAVAclass/JavaInterface/JavaInterface.html</google-proxy>~
yes, but it's complicated
you'll use JNI calling out to C++. You'll need a C++ wrapper for a Fortran .dll or .so.
or you can kick off a script with java.lang.Runtime. read this if you go this way:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Good luck.
%
Thanks Sir ,It solved my problem, u know, i was using the batch file earlier which i use to execute from the java code.
yaa this is what i had done earlier. thanks sir
> yes, but it's complicated> > you'll use JNI calling out to C++. You'll need a C++> wrapper for a Fortran .dll or .so. If you plan on keep replying to JNI questions I suggest you first check out how it actually works.
> If you plan on keep replying to JNI questions I> suggest you first check out how it actually works.embla,If you insist on replying to humans, I respectfully request that you begin to learn how those work.
> If you plan on keep replying to JNI questions
"keep replying"? I hadn't realized I was running up a tab, or that I was claiming supremacy over JNI.
> I suggest you first check out how it actually works.
I've only seen it done with Java calling C++. It entailed using a .dll or .lib. Is the C++ wrapping unnecessary, then?
Please educate me. Most appreciated.
%
> > If you plan on keep replying to JNI questions I
> > suggest you first check out how it actually works.
>
> embla,
>
> If you insist on replying to humans, I respectfully
> request that you begin to learn how those work.
Don't mind embla, she's just a poor Swedish girl who practices her English on people by being insulting. She thinks it makes her delightful and keeps the conversation going.
She's perfectly OK with other people spouting off on these forums, she just doesn't care for me at all. I've become something of a pet project for her. (I think it's 'cause she really likes me underneath it all.)
I don't take it personally.
%
> She's perfectly OK with other people spouting off on
> these forums, she just doesn't care for me at all.
> I've become something of a pet project for her. (I
> think it's 'cause she really likes me underneath it
> all.)
>
> I don't take it personally.
Kinda like that screwed up girl who used to punch me in Kindergarten, I guess... we dated in the seventh grade :).
> Kinda like that screwed up girl who used to punch me> in Kindergarten, I guess... we dated in the seventh> grade :).Yup, I'm the gleam in Embla's eye. I guess that makes me First Woman Consort or something like that.Where is she now?%
> Where is she now?Off pontificating* somewhere, no doubt.~* Not like that
I meant the girl from 7th grade, not Embla, of course. We know where she is.%
> I meant the girl from 7th grade, not Embla, of course. Oh. Right. Carry on, then!;o)~
> I meant the girl from 7th grade, not Embla, of> course. We know where she is.Oh yeah... she punched me in the 7th grade too, so we ended up getting married after high school ;).
> > I meant the girl from 7th grade, not Embla, of> > course. We know where she is.> > Oh yeah... she punched me in the 7th grade too, so we> ended up getting married after high school ;).What a woman! Congrats!%
Wow, maybe I'll get lucky with Embla, too. You never know...At worst she'll give a good spanking and a lesson in JNI. It's what we call "win win".%
> > I meant the girl from 7th grade, not Embla, of> > course. We know where she is.> > Oh yeah... she punched me in the 7th grade too, so we> ended up getting married after high school ;).A cooked up story. :D
> At worst she'll give a good spanking and a lesson in> JNI. It's what we call "win win".It always starts out like that ... first she lets you access her package, then she starts overriding your methods. Before you know it, she's got your whole API in a .jar.
> It always starts out like that ... first she lets you> access her package, then she starts overriding your> methods. Before you know it, she's got your whole> API in a .jar.I'm hoping she'll ask my service for some WSDL....%
> I'm hoping she'll ask my service for some WSDL....Just make sure to finalize your interfaces so you guys don't end up instantiating child classes...