<?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: JAVA and DCL in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855429#M32866</link>
    <description>Willem,&lt;BR /&gt;&lt;BR /&gt;Maybe you find something in&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/faq/" target="_blank"&gt;http://h18012.www1.hp.com/java/faq/&lt;/A&gt;&lt;BR /&gt;(just found it myself)&lt;BR /&gt;&lt;BR /&gt;Wim</description>
    <pubDate>Thu, 17 Jun 2004 09:06:43 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2004-06-17T09:06:43Z</dc:date>
    <item>
      <title>JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855425#M32862</link>
      <description>As a spin-off of thread &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=611671" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=611671&lt;/A&gt;&lt;BR /&gt;I'm just wondering if you can start a commandprocedure or program from within a JAVA application.&lt;BR /&gt;&lt;BR /&gt;Willem&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jun 2004 01:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855425#M32862</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-06-17T01:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855426#M32863</link>
      <description>&lt;A href="http://home-1.tiscali.nl/~bmc88/java/sbook/087.html" target="_blank"&gt;http://home-1.tiscali.nl/~bmc88/java/sbook/087.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Looks like a spawn.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 17 Jun 2004 02:10:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855426#M32863</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-06-17T02:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855427#M32864</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;Your example will surely work in Unix, but I'm not sure it will under VMS. Lets put it this way: I have my doubts:&lt;BR /&gt;Under Unix, each image is a process. Running another image from that image simply means: clone your process enviroment and execute the image in the clone. Afterwards, control can be returned.&lt;BR /&gt;Under VMS a process is much more: it's the complete user environment - resources, abilities....One implication is that within a the proces context, you can have one - and no more - image active at any time. When executing a java application, the active image is JAVA.EXE, implying you cannot start a second image within the same process. This means: as long as JAVA.EXE is active, NO OTHER process - not even DCL - can be active within that process, or you have to postpone the running image. (This is what happens if you ^Y, as long as you don't execute another image you can $CONTINUE - it's still in memory.)&lt;BR /&gt;What you can do from JAVA is either:&lt;BR /&gt;* SPAWN (the VMS way) which can allow return of control after image rundown,&lt;BR /&gt;* run the next command as a detached process,&lt;BR /&gt;* remove itself from memory before starting the next one (that is what LIB$DO_COMMAND does).&lt;BR /&gt;&lt;BR /&gt;Both SPAWN and RUN/DETACHED may require synchronisation in some way to regain control by the JAVA application - and that might get quite complicated, since the advanced facilities of VMS are simply lacking in JAVA (since that's Unix))&lt;BR /&gt;DO_COMMAND inhibits return of control - since JAVA.EXE (and the application files) will be removed from memory.&lt;BR /&gt;&lt;BR /&gt;Willem&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jun 2004 06:44:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855427#M32864</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-06-17T06:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855428#M32865</link>
      <description>Let's look at the relevant line of the example Wim cites: &lt;BR /&gt;&lt;BR /&gt;Process p = rn.exec("ls -als " + documenturl);&lt;BR /&gt;&lt;BR /&gt;The exec() function is part of Java's Runtime class and is documented to be platform-dependent.  However, the semantics are really the same as the CRTL's exec() function (which is very likely what gets invoked under the hood), so the call syntax is actually pretty much the same on any platform.  On the other hand, the command you send is a native command, and on VMS, "ls" is more likely to invoke the language sensitive editor than it is to obtain a directory listing, and the "documenturl" may very well need to be converted to native file naming conventions.</description>
      <pubDate>Thu, 17 Jun 2004 08:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855428#M32865</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2004-06-17T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855429#M32866</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;Maybe you find something in&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/faq/" target="_blank"&gt;http://h18012.www1.hp.com/java/faq/&lt;/A&gt;&lt;BR /&gt;(just found it myself)&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 17 Jun 2004 09:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855429#M32866</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-06-17T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855430#M32867</link>
      <description>Hello Willem,&lt;BR /&gt;&lt;BR /&gt;seems this at least was a serious problem:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/wizard/wiz_6733.html" target="_blank"&gt;http://h71000.www7.hp.com/wizard/wiz_6733.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You might want to check the release notes if it is fixed by now.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Thu, 17 Jun 2004 20:37:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855430#M32867</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-06-17T20:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855431#M32868</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;String env [ ] = {"a = 25"};&lt;BR /&gt;Process p = Runtime.getRuntime.exec ("test.com", env);&lt;BR /&gt;p.waitFor ( );&lt;BR /&gt;&lt;BR /&gt;but it seems that the symbol a doesn't arrive well.&lt;BR /&gt;&lt;BR /&gt;Also found &lt;BR /&gt;&lt;A href="http://www.j2vms.co.uk/" target="_blank"&gt;http://www.j2vms.co.uk/&lt;/A&gt;&lt;BR /&gt;It promisses the most ...&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2004 00:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855431#M32868</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-06-18T00:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855432#M32869</link>
      <description>Thanks for the information so far.&lt;BR /&gt;&lt;BR /&gt;Wim,&lt;BR /&gt;My impression now is I can start a command &lt;BR /&gt;procedure:&lt;BR /&gt;&lt;BR /&gt;Process p = Runtime.getRuntime.exec ("test.com", env);&lt;BR /&gt;&lt;BR /&gt;meaning I do NOT specify "@", just "test.com".&lt;BR /&gt;Which makes me believe that "run program.exe" would be possible also.&lt;BR /&gt;&lt;BR /&gt;Your last link is promising as an extra. It's an impressive extension, but would render the Java program unusable on other platforms. (IMHO, I would then not use JAVA but create a native program)&lt;BR /&gt;&lt;BR /&gt;Craig:&lt;BR /&gt;I know what "ls" means, in both Unix and VMS. That the command will actually do something different is quite obvious. The given command is not the issue, but the possibility to be able to run any program.&lt;BR /&gt;&lt;BR /&gt;Martin:&lt;BR /&gt;Applies to 1.2.2 - but to other versions as well? &lt;BR /&gt;&lt;BR /&gt;Willem</description>
      <pubDate>Fri, 18 Jun 2004 01:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855432#M32869</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-06-18T01:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855433#M32870</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;I get the concept of leaving out the "@" sign.&lt;BR /&gt;How about parameter passing? &lt;BR /&gt;IIRC, the start of all this digging was how to trigger a system shutdown by a UPS using JAVA. AFAIK, that means it will be either interactive (defying the idea of triggering by a power fail to the UPS), or, the params will have to be passed to SHUTDOWN.COM&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Fri, 18 Jun 2004 02:40:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855433#M32870</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-06-18T02:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: JAVA and DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855434#M32871</link>
      <description>In the userguide for Java for VMS (1.4.2 version) I found a complete example on how to do this - including passing poarameters</description>
      <pubDate>Thu, 06 Oct 2005 15:27:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-and-dcl/m-p/4855434#M32871</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2005-10-06T15:27:09Z</dc:date>
    </item>
  </channel>
</rss>

