<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling Fortran from JAVA in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766570#M34251</link>
    <description>Adriano,&lt;BR /&gt;&lt;BR /&gt;The calling mechanism for bot VMS C and VMS Fortran are same in VMS, probably you can call 4tran from Java. I have no exp in Java.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;archunan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Apr 2006 17:29:06 GMT</pubDate>
    <dc:creator>Arch_Muthiah</dc:creator>
    <dc:date>2006-04-05T17:29:06Z</dc:date>
    <item>
      <title>Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766568#M34249</link>
      <description>how calling a fortran routines from java ?</description>
      <pubDate>Wed, 05 Apr 2006 14:45:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766568#M34249</guid>
      <dc:creator>Adriano Veronez</dc:creator>
      <dc:date>2006-04-05T14:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766569#M34250</link>
      <description>I think the easiest way is probably to write interfacing routines in C, that can handle the differences in the passing mechanisms. Interfacing to C is standard availability in Java - so is the way strings are terminated; this is very different from the way Fortan (and other VMS-native languages) handle parameters.&lt;BR /&gt;&lt;BR /&gt;Willem</description>
      <pubDate>Wed, 05 Apr 2006 14:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766569#M34250</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2006-04-05T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766570#M34251</link>
      <description>Adriano,&lt;BR /&gt;&lt;BR /&gt;The calling mechanism for bot VMS C and VMS Fortran are same in VMS, probably you can call 4tran from Java. I have no exp in Java.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;archunan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Apr 2006 17:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766570#M34251</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-04-05T17:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766571#M34252</link>
      <description>Adriano,&lt;BR /&gt;&lt;BR /&gt;Having had some experience with the JNI (Jave Native Interface), if you are careful, you can probably construct routines in FORTRAN, without a C/C++ intermediary.&lt;BR /&gt;&lt;BR /&gt;It is true that C/C++ is the "planned for" target language, but the issue can be handled in FORTRAN. The main problem will be being careful to use only UPPER case external names, as FORTRAN is case-blind.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Wed, 05 Apr 2006 20:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766571#M34252</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-04-05T20:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766572#M34253</link>
      <description>I don't see a reason to drag C into this,&lt;BR /&gt;either.  DEC/Compaq/HP Fortran (formerly&lt;BR /&gt;known as FORTRAN) should be able to do&lt;BR /&gt;anything you need (just like practically&lt;BR /&gt;every other DEC/Compaq/HP language on VMS).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; FORTRAN is case-blind&lt;BR /&gt;&lt;BR /&gt;HELP FORTRAN /NAMES&lt;BR /&gt;&lt;BR /&gt;I haven't done any mixed language code for a&lt;BR /&gt;(long) while, but a quick look at the current&lt;BR /&gt;User Manual suggests that all the old %DESCR,&lt;BR /&gt;%LOC, %REF, and %VAL tricks are still there,&lt;BR /&gt;plus a bunch of new ones.  You do need to&lt;BR /&gt;figure out what the Java code is actually&lt;BR /&gt;passing, but that's always true.  And you&lt;BR /&gt;may need to build a few descriptors in your&lt;BR /&gt;interface functions, but you'd need to do&lt;BR /&gt;that in C, too.&lt;BR /&gt;&lt;BR /&gt;I'd say that you can write any needed&lt;BR /&gt;interface functions in the language you like&lt;BR /&gt;best, but adding a new language (like C) to a&lt;BR /&gt;project has some obvious disadvantages.&lt;BR /&gt;&lt;BR /&gt;For Fortran info:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/fortran.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/fortran.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/6443/6443pro.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/6443/6443pro.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/6443/6443pro_029.html#ch_fort_call_conv" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/6443/6443pro_029.html#ch_fort_call_conv&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Apr 2006 22:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766572#M34253</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-04-05T22:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766573#M34254</link>
      <description>Adriano,&lt;BR /&gt;  I don't have a working example, but there are several "how'to's" on the web.  I found this one to be fairly complete:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.csharp.com/javacfort.html" target="_blank"&gt;http://www.csharp.com/javacfort.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;And there are others...&lt;BR /&gt;&lt;BR /&gt;Of course we also have the example from the OpenVMS Java FAQ page...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/faq/ovms.html#4.0" target="_blank"&gt;http://h18012.www1.hp.com/java/faq/ovms.html#4.0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Rick Retterer&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Apr 2006 09:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766573#M34254</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2006-04-06T09:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766574#M34255</link>
      <description>Rick Retterer&lt;BR /&gt;[Adriano, &lt;BR /&gt;I don't have a working example, but there are several "how'to's" on the web. I found this one to be fairly complete: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.csharp.com/javacfort.html" target="_blank"&gt;http://www.csharp.com/javacfort.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;And there are others... &lt;BR /&gt;&lt;BR /&gt;Of course we also have the example from the OpenVMS Java FAQ page... &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/faq/ovms.html#4.0" target="_blank"&gt;http://h18012.www1.hp.com/java/faq/ovms.html#4.0&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cheers, &lt;BR /&gt;Rick Retterer  ]&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.csharp.com/javacfort.html" target="_blank"&gt;http://www.csharp.com/javacfort.html&lt;/A&gt; &amp;lt;- I want this but for VMS. and using Cxx (Compilator C installed)</description>
      <pubDate>Thu, 06 Apr 2006 13:44:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766574#M34255</guid>
      <dc:creator>Adriano Veronez</dc:creator>
      <dc:date>2006-04-06T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766575#M34256</link>
      <description>Adriano,&lt;BR /&gt;  I just received this example from Hartmut Becker, who did a Decus presentation on what you are seeking to do.&lt;BR /&gt;&lt;BR /&gt;Here is the example he provided, that I'm passing along to you.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Rick&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Apr 2006 13:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766575#M34256</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2006-04-07T13:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766576#M34257</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I couldn't find out any more about a Java related comment in the source code for the VMS Image Activator, via in comp.os.vms. So maybe someone here can shed some light on what this particular VMS developer was talking about: -&lt;BR /&gt;&lt;BR /&gt;From COV&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Is VMS Security being dumbed-down for Java? &lt;BR /&gt;-------------------------------------------&lt;BR /&gt;&lt;BR /&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;I have been unable to locate anyone who both could and would answer a couple of questions for me regarding the image activator's treatment of logical names, so in desperation I've begun to toy with the idea of wading through a copy of the VMS source listings, that someone was kind enough to show me. A quick glance revealed a developer's comment that I found quite striking, and I was wondering if anyone here could shed any further light on the issue. &lt;BR /&gt;&lt;BR /&gt;Now, comments are just that, comments and quite often bear no resemblance to what the code is actually doing, and you're free to read as little or as much into them as you like,  but see what you think anyway. From &lt;BR /&gt;SYSIMGACT.LIS  3-Oct-2004 line 1820 onwards: - &lt;BR /&gt;&lt;BR /&gt;! the following code seems like a good idea, and maybe would be some day. &lt;BR /&gt;! but, in fact, untrusted names are required for privileged execution of &lt;BR /&gt;Java. . . &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Damn your logic Spock! the Javans are a peaceful people and mean us no harm." &lt;BR /&gt;"Shields-Down Mr Sulu. . ." &lt;BR /&gt;&lt;BR /&gt;It's a given that not everyone is as easily given to superlative as me so the horizontal ellipses could be a roll-of-the-eyes, an outpouring of exacerbation, a cry for help, or simply "I'm not gonna fill up the source &lt;BR /&gt;listing with the rest of this fascinating tale". Or non of the above? Anyway &lt;BR /&gt;FYI. &lt;BR /&gt;&lt;BR /&gt;Regards Richard Maher &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Apr 2006 19:28:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766576#M34257</guid>
      <dc:creator>Richard J Maher</dc:creator>
      <dc:date>2006-04-07T19:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766577#M34258</link>
      <description>I have not called Fortran from Java but have called Basic.&lt;BR /&gt;&lt;BR /&gt;The way I did it was to take the JNI example given by HP to link to C. That way you can 'easily' create the required Java and C headers , linkages etc. &lt;BR /&gt;&lt;BR /&gt;From the C I could then call my Basic functions. This also allowed me to translate Java strings to C strings to DESCRIPTOR strings.&lt;BR /&gt;&lt;BR /&gt;I suppose in theory I could go directly to Basic but it would be a lot of extra fiddly bespoke work!&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jun 2006 04:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766577#M34258</guid>
      <dc:creator>P R Stone_1</dc:creator>
      <dc:date>2006-06-15T04:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Fortran from JAVA</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766578#M34259</link>
      <description>Why use C (or C++)?&lt;BR /&gt;Simply because both JAva and C use the UNIX conventions for passing parameters, especiaclly when passing stings (any type of array, actually). The concept of "Descriptors" as used in VMS i's nonb-Unix and requires extra coding, on either side of the fence.&lt;BR /&gt;(not my words but I like the expression:&lt;BR /&gt;&lt;BR /&gt;"Unix speaks C and deducted languages, nothing else. VMS speaks all that is standarized - and more - single and mixed."&lt;BR /&gt;&lt;BR /&gt;Willem</description>
      <pubDate>Fri, 16 Jun 2006 08:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calling-fortran-from-java/m-p/3766578#M34259</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2006-06-16T08:11:27Z</dc:date>
    </item>
  </channel>
</rss>

