fortran and java

Can any one let me know ,is it possible to execute a fortran code from java swing?
[89 byte] By [Avishek123a] at [2007-11-26 18:26:40]
# 1
<google-proxy> http://www.math.ucla.edu/~anderson/JAVAclass/JavaInterface/JavaInterface.html</google-proxy>~
yawmarka at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 2

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.

%

duffymoa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 3
Thanks Sir ,It solved my problem, u know, i was using the batch file earlier which i use to execute from the java code.
Avishek123a at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 4
yaa this is what i had done earlier. thanks sir
Avishek123a at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 5
> 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.
Avishek123a at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 6
> 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.
kevjavaa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 7

> 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.

%

duffymoa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 8

> > 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.

%

duffymoa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 9

> 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 :).

kevjavaa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 10
> 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?%
duffymoa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 11
> Where is she now?Off pontificating* somewhere, no doubt.~* Not like that
yawmarka at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 12
I meant the girl from 7th grade, not Embla, of course. We know where she is.%
duffymoa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 13
> I meant the girl from 7th grade, not Embla, of course. Oh. Right. Carry on, then!;o)~
yawmarka at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 14
> 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 ;).
kevjavaa at 2007-7-9 6:00:45 > top of Java-index,Java Essentials,New To Java...
# 15
> > 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!%
duffymoa at 2007-7-21 17:20:44 > top of Java-index,Java Essentials,New To Java...
# 16
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".%
duffymoa at 2007-7-21 17:20:44 > top of Java-index,Java Essentials,New To Java...
# 17
> > 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
qUesT_foR_knOwLeDgea at 2007-7-21 17:20:44 > top of Java-index,Java Essentials,New To Java...
# 18
> 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.
kevjavaa at 2007-7-21 17:20:44 > top of Java-index,Java Essentials,New To Java...
# 19
> 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....%
duffymoa at 2007-7-21 17:20:44 > top of Java-index,Java Essentials,New To Java...
# 20
> 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...
kevjavaa at 2007-7-21 17:20:44 > top of Java-index,Java Essentials,New To Java...