<?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 Executing DCL from Java in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145326#M44918</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've installed a Java application on an HP Integrity rx2660 server running VMS 8.3-1H1 and the latest Java SDK.  The application (a commercial e-commerce product) was not developed with VMS in mind and we are this vendor's first VMS customer.&lt;BR /&gt;&lt;BR /&gt;The application has the ability to "run a shell command on receipt of a file" and so I configured it to run a SUBMIT command.  However it fails with this error:&lt;BR /&gt;&lt;BR /&gt;"Child creation error: no such file or directory"&lt;BR /&gt;&lt;BR /&gt;The vendor tells me the DCL command is invoked using Runtime.exec() but I know nothing about Java.  Where can I find a description of how Runtime.exec() works on VMS?&lt;BR /&gt;&lt;BR /&gt;FYI the Java application runs as a batch job under a specific username.  The SUBMIT command in question works fine when invoked by that user interactively.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jeremy Begg</description>
    <pubDate>Tue, 09 Dec 2008 04:30:58 GMT</pubDate>
    <dc:creator>Jeremy Begg</dc:creator>
    <dc:date>2008-12-09T04:30:58Z</dc:date>
    <item>
      <title>Executing DCL from Java</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145326#M44918</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've installed a Java application on an HP Integrity rx2660 server running VMS 8.3-1H1 and the latest Java SDK.  The application (a commercial e-commerce product) was not developed with VMS in mind and we are this vendor's first VMS customer.&lt;BR /&gt;&lt;BR /&gt;The application has the ability to "run a shell command on receipt of a file" and so I configured it to run a SUBMIT command.  However it fails with this error:&lt;BR /&gt;&lt;BR /&gt;"Child creation error: no such file or directory"&lt;BR /&gt;&lt;BR /&gt;The vendor tells me the DCL command is invoked using Runtime.exec() but I know nothing about Java.  Where can I find a description of how Runtime.exec() works on VMS?&lt;BR /&gt;&lt;BR /&gt;FYI the Java application runs as a batch job under a specific username.  The SUBMIT command in question works fine when invoked by that user interactively.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jeremy Begg</description>
      <pubDate>Tue, 09 Dec 2008 04:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145326#M44918</guid>
      <dc:creator>Jeremy Begg</dc:creator>
      <dc:date>2008-12-09T04:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Executing DCL from Java</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145327#M44919</link>
      <description>&lt;!--!*#--&gt;A quick Google search for:&lt;BR /&gt;      java Runtime.exec vms OR openvms&lt;BR /&gt;led reasonable easily to:      &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/documentation/" target="_blank"&gt;http://h18012.www1.hp.com/java/documentation/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html" target="_blank"&gt;http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html#workingwruntimeexec" target="_blank"&gt;http://h18012.www1.hp.com/java/documentation/1.4.2/ovms/docs/user_guide.html#workingwruntimeexec&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I quote:&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;Asking a Java program to exec a DCL verb like DIR does not work. &lt;BR /&gt;&lt;BR /&gt;Workaround:&lt;BR /&gt;[...]</description>
      <pubDate>Tue, 09 Dec 2008 05:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145327#M44919</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-09T05:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Executing DCL from Java</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145328#M44920</link>
      <description>Thanks!  I found the same information about 20 minutes after writing my query.</description>
      <pubDate>Tue, 09 Dec 2008 05:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145328#M44920</guid>
      <dc:creator>Jeremy Begg</dc:creator>
      <dc:date>2008-12-09T05:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Executing DCL from Java</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145329#M44921</link>
      <description>Answered before, see threadId=1226409. Another workaround (costs one more process) is to use DCL.EXE from GNV and have that in your path.&lt;BR /&gt;&lt;BR /&gt;$ ty dcl.java&lt;BR /&gt;import java.io.*;&lt;BR /&gt;public class DCL {&lt;BR /&gt;&lt;BR /&gt;  public static void main(String argv[]) {&lt;BR /&gt;    try {&lt;BR /&gt;      String cmd[] = {"dcl.exe", "dir", "/since", "dcl*"};&lt;BR /&gt;      String line;&lt;BR /&gt;      Process p = Runtime.getRuntime().exec (cmd);&lt;BR /&gt;      BufferedReader input =&lt;BR /&gt;        new BufferedReader&lt;BR /&gt;          (new InputStreamReader(p.getInputStream()));&lt;BR /&gt;      while ((line = input.readLine()) != null) {&lt;BR /&gt;        System.out.println(line);&lt;BR /&gt;      }&lt;BR /&gt;      input.close();&lt;BR /&gt;    }&lt;BR /&gt;    catch (Exception err) {&lt;BR /&gt;      err.printStackTrace();&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;$ javac dcl.java&lt;BR /&gt;$ java "DCL&lt;BR /&gt;&lt;BR /&gt;Directory SYS$SYSDEVICE:[HARTMUT]&lt;BR /&gt;&lt;BR /&gt;DCL.CLASS;1         DCL.JAVA;1&lt;BR /&gt;&lt;BR /&gt;Total of 2 files.&lt;BR /&gt;$</description>
      <pubDate>Tue, 09 Dec 2008 11:27:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/executing-dcl-from-java/m-p/5145329#M44921</guid>
      <dc:creator>x2084</dc:creator>
      <dc:date>2008-12-09T11:27:39Z</dc:date>
    </item>
  </channel>
</rss>

