<?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 exit code 1.5 en 6.0 and VMS exit code in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625526#M39891</link>
    <description>There were some changes to the way that Java returns values with the release of version 6.0.  The following link contains details of how to use the JAVA$EXIT_ENV logical to control this behaviour.&lt;BR /&gt;&lt;BR /&gt;     &lt;A href="http://h18012.www1.hp.com/java/documentation/1.6.0/ivms/docs/user_guide.html#exitmode" target="_blank"&gt;http://h18012.www1.hp.com/java/documentation/1.6.0/ivms/docs/user_guide.html#exitmode&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It seems that POSIX is the default (which would explain what you're experiencing).&lt;BR /&gt;&lt;BR /&gt;Tim.</description>
    <pubDate>Wed, 28 Apr 2010 23:49:47 GMT</pubDate>
    <dc:creator>Tim E. Sneddon</dc:creator>
    <dc:date>2010-04-28T23:49:47Z</dc:date>
    <item>
      <title>Java exit code 1.5 en 6.0 and VMS exit code</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625522#M39887</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I schedule some java programs on a VMS server via a command file.&lt;BR /&gt;When the application ends normally it is doing a system.exit(1);&lt;BR /&gt;&lt;BR /&gt;This means that the $severity is also 1 and $status is %X10000001 in my command file and successfully ended.&lt;BR /&gt;&lt;BR /&gt;This worked in Java 1.5.&lt;BR /&gt;&lt;BR /&gt;In Java 6 this doesn't work anymore.&lt;BR /&gt;system.exit(1) is translated to $severity is 2. And $status is %X1035A00A.&lt;BR /&gt;&lt;BR /&gt;Is this normal?&lt;BR /&gt;Can I set some logicals to have the same behavior as in Java 1.5.&lt;BR /&gt;&lt;BR /&gt;/Toine</description>
      <pubDate>Wed, 28 Apr 2010 15:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625522#M39887</guid>
      <dc:creator>Toine_1</dc:creator>
      <dc:date>2010-04-28T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Java exit code 1.5 en 6.0 and VMS exit code</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625523#M39888</link>
      <description>&lt;!--!*#--&gt;ALP $ sysmsg %X1035A00A&lt;BR /&gt;   (SYS$COMMON:[SYSMSG]DECC$MSG.EXE;1:)&lt;BR /&gt;%C-E-EXIT1, exit value 1&lt;BR /&gt;&lt;BR /&gt;Looks like a compile-time decision:&lt;BR /&gt;&lt;BR /&gt;      HELP CRTL exit</description>
      <pubDate>Wed, 28 Apr 2010 15:27:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625523#M39888</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-04-28T15:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Java exit code 1.5 en 6.0 and VMS exit code</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625524#M39889</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Looks like a compile-time decision:&lt;BR /&gt;&lt;BR /&gt;Yes. Compile program below with and without /define=_POSIX_EXIT , run it and check $status:&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;int main() { exit(1); }&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Boris&lt;/STDLIB.H&gt;</description>
      <pubDate>Wed, 28 Apr 2010 15:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625524#M39889</guid>
      <dc:creator>WW304289</dc:creator>
      <dc:date>2010-04-28T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Java exit code 1.5 en 6.0 and VMS exit code</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625525#M39890</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Looks like a compile-time decision:&lt;BR /&gt;&lt;BR /&gt;Of course, it _is_ possible to call either&lt;BR /&gt;plain [decc$]exit() or __posix_exit()&lt;BR /&gt;explicitly, and so it is possible to make a&lt;BR /&gt;run-time decision about which one to use.&lt;BR /&gt;&lt;BR /&gt;Knowing nothing, I'd guess that the people&lt;BR /&gt;moving Java to VMS did some easy thing, like&lt;BR /&gt;define _POSIX_EXIT, when they built the&lt;BR /&gt;stuff, so I'd guess that there's no run-time&lt;BR /&gt;flexibility.  But I haven't looked hard at&lt;BR /&gt;the Java-on-VMS documentation to see if&lt;BR /&gt;there's anything relevant (and revealing)&lt;BR /&gt;there.</description>
      <pubDate>Wed, 28 Apr 2010 18:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625525#M39890</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-04-28T18:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Java exit code 1.5 en 6.0 and VMS exit code</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625526#M39891</link>
      <description>There were some changes to the way that Java returns values with the release of version 6.0.  The following link contains details of how to use the JAVA$EXIT_ENV logical to control this behaviour.&lt;BR /&gt;&lt;BR /&gt;     &lt;A href="http://h18012.www1.hp.com/java/documentation/1.6.0/ivms/docs/user_guide.html#exitmode" target="_blank"&gt;http://h18012.www1.hp.com/java/documentation/1.6.0/ivms/docs/user_guide.html#exitmode&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It seems that POSIX is the default (which would explain what you're experiencing).&lt;BR /&gt;&lt;BR /&gt;Tim.</description>
      <pubDate>Wed, 28 Apr 2010 23:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625526#M39891</guid>
      <dc:creator>Tim E. Sneddon</dc:creator>
      <dc:date>2010-04-28T23:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Java exit code 1.5 en 6.0 and VMS exit code</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625527#M39892</link>
      <description>Hi Tim,&lt;BR /&gt;&lt;BR /&gt;Thanks for the answer. This is what I'm looking for.&lt;BR /&gt;&lt;BR /&gt;I should read the release notes !!&lt;BR /&gt;&lt;BR /&gt;$ define JAVA$EXIT_ENV COMPAT solved my problem.&lt;BR /&gt;&lt;BR /&gt;============================================&lt;BR /&gt;&lt;BR /&gt;Controlling exit mode&lt;BR /&gt;Beginning with JDK 6.x, a new logical, JAVA$EXIT_ENV, is introduced to control the exit mode of the JDK. Four modes are supported: &lt;BR /&gt;&lt;BR /&gt;COMPAT: &lt;BR /&gt;&lt;BR /&gt;Any value returned by the exit function is masked with %x10000000. &lt;BR /&gt;Any value returned by waitForProcessExit is returned unchanged. &lt;BR /&gt;This is the mode used for all JDKs before JDK 6.x. &lt;BR /&gt;POSIX: &lt;BR /&gt;&lt;BR /&gt;Return value of the exit function: &lt;BR /&gt;Any value less than 256 is converted to match the C RTL POSIX exit code. &lt;BR /&gt;Any value over 255 is returned as the value with the inhibit mask. &lt;BR /&gt;Return value of the waitForProcessExit method: &lt;BR /&gt;Values of 0 or 1 are returned as a 0. &lt;BR /&gt;The CRTL POSIX exit code 1 (3514378) is returned as a 1. &lt;BR /&gt;Values between 3514379 and 3516409 are converted back to POSIX-style exit values, which are from 2 to 255. &lt;BR /&gt;&lt;BR /&gt;POSIXVMS: &lt;BR /&gt;&lt;BR /&gt;Same as POSIX mode, with one exception: For values 0 and 1, the waitForProcessExit method is returned as 1. &lt;BR /&gt;POSIX0AND1: &lt;BR /&gt;&lt;BR /&gt;Same as POSIX mode, with one exception: For values 0 and 1, waitForProcessExit is returned with the exact value received. &lt;BR /&gt;The default mode for JDK 6.x is POSIX. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/Toine</description>
      <pubDate>Thu, 29 Apr 2010 05:32:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-exit-code-1-5-en-6-0-and-vms-exit-code/m-p/4625527#M39892</guid>
      <dc:creator>Toine_1</dc:creator>
      <dc:date>2010-04-29T05:32:47Z</dc:date>
    </item>
  </channel>
</rss>

