<?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 failure on exec call? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868513#M31527</link>
    <description>The replies were helpful in finding resolution to my question.</description>
    <pubDate>Wed, 03 Nov 2004 12:13:24 GMT</pubDate>
    <dc:creator>Sandeep_30</dc:creator>
    <dc:date>2004-11-03T12:13:24Z</dc:date>
    <item>
      <title>Java failure on exec call?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868507#M31521</link>
      <description>I am running this java code on Itanium machine with Java version 1.4.2 and VMS version 8.2,&lt;BR /&gt;&lt;BR /&gt;import java.lang.*;&lt;BR /&gt;&lt;BR /&gt;public class Example1&lt;BR /&gt;{&lt;BR /&gt;        public static void main(String args[])&lt;BR /&gt;        {&lt;BR /&gt;                int ExitCode=0;&lt;BR /&gt;                try&lt;BR /&gt;                {&lt;BR /&gt;                        Runtime r = Runtime.getRuntime();&lt;BR /&gt;                        System.out.println("Executing TESTJOB");&lt;BR /&gt;                        Process p = r.exec("@OVMS01$DKA100:[SYS0.SYSMGR.TESTING]TESTJOB.COM");&lt;BR /&gt;                        ExitCode = p.waitFor();&lt;BR /&gt;                }&lt;BR /&gt;                catch (Exception ex)&lt;BR /&gt;                {&lt;BR /&gt;                        System.out.println("Error: Could not launch TESTJOB. Mes&lt;BR /&gt;sage is :" + ex.getMessage());&lt;BR /&gt;                }&lt;BR /&gt;        }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;When I run the above code, below is the Exception message I receive,&lt;BR /&gt;&lt;BR /&gt;$ java "Example1&lt;BR /&gt;Executing TESTJOB&lt;BR /&gt;Error: Could not launch TESTJOB. Message is :Child creation error: error 100052&lt;BR /&gt;VMS error code: error 100052&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;BR /&gt;Thanks&lt;BR /&gt;Sandeep&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Nov 2004 18:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868507#M31521</guid>
      <dc:creator>Sandeep_30</dc:creator>
      <dc:date>2004-11-02T18:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Java failure on exec call?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868508#M31522</link>
      <description>For what it's worth, error 100052 is "%RMS-F-SYN, file specification syntax error".</description>
      <pubDate>Tue, 02 Nov 2004 18:32:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868508#M31522</guid>
      <dc:creator>Garry Fruth</dc:creator>
      <dc:date>2004-11-02T18:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Java failure on exec call?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868509#M31523</link>
      <description>Sandeep,&lt;BR /&gt;&lt;BR /&gt;  Look at the definition of the r.exec function. Does it expect a command string or the name of an image to execute? I suspect it's the image name, in which case the "@" in the filespec is incorrect and would account for the RMS-F-SYN error.&lt;BR /&gt;&lt;BR /&gt; As a test, try replacing the string with "OVMS01$DKA100:[SYS0.SYSMGR.TESTING]HELLOWORLD.EXE" &lt;BR /&gt;&lt;BR /&gt; It may also accept just the name of the command procedure, so try leaving off the leading "@".&lt;BR /&gt;&lt;BR /&gt;  There may be another routine to call to execute an arbitrary DCL command (maybe "system"?).&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Nov 2004 23:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868509#M31523</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-11-02T23:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java failure on exec call?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868510#M31524</link>
      <description>Sandeep,&lt;BR /&gt;I'm with John; r.exec is like spawn c function and I guess you can run only binary imaged (.exe).&lt;BR /&gt;You have to search the equivalent method of system c function.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2004 03:44:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868510#M31524</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-11-03T03:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Java failure on exec call?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868511#M31525</link>
      <description>Sandeep,&lt;BR /&gt;&lt;BR /&gt;I try yours example on an alpha 7.3-2 same Java version. Same error reported. Johns suggestion works. So you must omitt the @.&lt;BR /&gt;Now the strange things. I write the testjob.com like this:&lt;BR /&gt;&lt;BR /&gt;$ open/write f test.dat&lt;BR /&gt;$ write f p1," ",p2," ",p3&lt;BR /&gt;$ close f&lt;BR /&gt;&lt;BR /&gt;Now I have replaced the&lt;BR /&gt;r.exec("@OVMS01$DKA100:[SYS0.SYSMGR.TESTING]TESTJOB.COM"); in&lt;BR /&gt;r.exec("OVMS01$DKA100:[SYS0.SYSMGR.TESTING]TESTJOB.COM a b c");&lt;BR /&gt;&lt;BR /&gt;The contents of the test.dat is supposed to be:&lt;BR /&gt;a b c&lt;BR /&gt;but they are:&lt;BR /&gt;OVMS01$DKA100:[SYS0.SYSMGR.TESTING]TESTJOB.COM a b&lt;BR /&gt;&lt;BR /&gt;So pay attention when passing arguments. (The same is when you use an array of strings).&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Wed, 03 Nov 2004 04:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868511#M31525</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-11-03T04:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Java failure on exec call?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868512#M31526</link>
      <description>Appreciate your help. &lt;BR /&gt;&lt;BR /&gt;Thank you all for your replies.&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2004 12:12:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868512#M31526</guid>
      <dc:creator>Sandeep_30</dc:creator>
      <dc:date>2004-11-03T12:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Java failure on exec call?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868513#M31527</link>
      <description>The replies were helpful in finding resolution to my question.</description>
      <pubDate>Wed, 03 Nov 2004 12:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-failure-on-exec-call/m-p/4868513#M31527</guid>
      <dc:creator>Sandeep_30</dc:creator>
      <dc:date>2004-11-03T12:13:24Z</dc:date>
    </item>
  </channel>
</rss>

