<?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 version from script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875307#M31613</link>
    <description>This is not a cluster, all servers are standalone. (DunaX servers are test servers, Venus is our main server.)&lt;BR /&gt;The java startup file is run from the login script. I also tried to run it in the script file that is copied to the Alpha, but the result is the same.</description>
    <pubDate>Tue, 14 Dec 2004 08:34:56 GMT</pubDate>
    <dc:creator>Attila Fekete_1</dc:creator>
    <dc:date>2004-12-14T08:34:56Z</dc:date>
    <item>
      <title>Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875299#M31605</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to write a script which collect the Java version from other alpha nodes. To get TCP/IP version and other things I used rsh and it works. But with Java it doesn't put anything in the log file or it puts something strange.&lt;BR /&gt;I tried to put a com file on the node and run it with rsh, but it generated false output - other than run localy.&lt;BR /&gt;Does someone know a solution for that?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Attila</description>
      <pubDate>Tue, 14 Dec 2004 04:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875299#M31605</guid>
      <dc:creator>Attila Fekete_1</dc:creator>
      <dc:date>2004-12-14T04:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875300#M31606</link>
      <description>Since multiple versions may be installed, I fear there is no easy answer.&lt;BR /&gt;&lt;BR /&gt;1. PROD SHO PROD JAVA* (via RSH) and parse the output&lt;BR /&gt;&lt;BR /&gt;2. dir 'node'::sys$common:&amp;lt;000000&amp;gt;java$*.dir&lt;BR /&gt;(or F$SEARCH), but this assumes JAVA is installed in default directory&lt;BR /&gt;&lt;BR /&gt;3.  ana/ima/sele=ident -&lt;BR /&gt;'node'::SYS$COMMON:[JAVA$*.bin]java$java&lt;BR /&gt; and parse the output</description>
      <pubDate>Tue, 14 Dec 2004 04:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875300#M31606</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2004-12-14T04:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875301#M31607</link>
      <description>Yeah, there are more version installed. Bevause of that I tried to run "java -version" and that's what doesn't work on remote node.</description>
      <pubDate>Tue, 14 Dec 2004 04:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875301#M31607</guid>
      <dc:creator>Attila Fekete_1</dc:creator>
      <dc:date>2004-12-14T04:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875302#M31608</link>
      <description>Attila,&lt;BR /&gt;&lt;BR /&gt;I try java - version and see that the version is written on sys$error. So you must do something like this:&lt;BR /&gt;&lt;BR /&gt;$ define/user sys$error tmpfile&lt;BR /&gt;$ java -version&lt;BR /&gt;$ type tmpfile&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;$ define/user sys$error sys$output&lt;BR /&gt;$ java -version&lt;BR /&gt;&lt;BR /&gt;to get the version on yours sys$output&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Tue, 14 Dec 2004 05:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875302#M31608</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-12-14T05:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875303#M31609</link>
      <description>That's the problem. Here's the output runing that script localy:&lt;BR /&gt;java version "1.3.1"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition&lt;BR /&gt;Fast VM (build 1.3.1-5, build J2SDK.v.1.3.1:11/21/2002-13:37, native threads, jit_131)&lt;BR /&gt;And runing from other node:&lt;BR /&gt;duna4$dka0:[sys0.syscommon.][sysexe]java.exe;1 version "1.1.8-5"&lt;BR /&gt;&lt;BR /&gt;Duna4 is the node where I want to know the Java version. But the 1.1.8-5 Java is installed only on a third Alpha.</description>
      <pubDate>Tue, 14 Dec 2004 05:07:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875303#M31609</guid>
      <dc:creator>Attila Fekete_1</dc:creator>
      <dc:date>2004-12-14T05:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875304#M31610</link>
      <description>JAVA 1.1.8 was a sort of default version, installed in SYS$SYSTEM and activated via a DCL verb.&lt;BR /&gt;The newer version are installed in their separate subdirs of SYS$COMMON and are activated by specific JAVA-Setup procedures which define a lot of DCL symbols.&lt;BR /&gt;&lt;BR /&gt;So just calling JAVA -version may give you an answer, but that is always 1.1.8 and it does not tell you what other versions are installed.</description>
      <pubDate>Tue, 14 Dec 2004 05:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875304#M31610</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2004-12-14T05:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875305#M31611</link>
      <description>That's not the case Java 1.1 was never installed on Duna4. It was installed on another node, on our main server.</description>
      <pubDate>Tue, 14 Dec 2004 05:39:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875305#M31611</guid>
      <dc:creator>Attila Fekete_1</dc:creator>
      <dc:date>2004-12-14T05:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875306#M31612</link>
      <description>Attila,&lt;BR /&gt;&lt;BR /&gt;that is what clustering is!&lt;BR /&gt;(assuming single system disk - multiple SD is somewhat more complex)&lt;BR /&gt;You --install-- the software ON THE SYSTEM DISK, from --any-- node, and then the software is available from ALL nodes; for installations that modify DCLTABLES (like Java 1.1.8 did, contrary to all other versions) the relevant verb(s) are active CLUSTERWIDE&lt;BR /&gt;(minor details:&lt;BR /&gt;-- only for processes logging in after the modification, or having done an explicit SET COMMAND;&lt;BR /&gt;-- only for the nodes using the same System Disk)&lt;BR /&gt;&lt;BR /&gt;All other JAVA versions need to execute JAVA$SETUP to get the Java commands available - as SYMBOLS, NOT as COMMANDS.&lt;BR /&gt;&lt;BR /&gt;And as long as the commands in DCLTABLES have not been explicitly removed or overwritten, THOSE are still active, with THEIR meaning, for any process that did NOT execute SETUP.&lt;BR /&gt;&lt;BR /&gt;If you can get your inquiring programm to execute @SYS$STARTUP:JAVA$STARTUP on the target machine, you are home.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- I hope this explains something.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Tue, 14 Dec 2004 07:08:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875306#M31612</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-12-14T07:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875307#M31613</link>
      <description>This is not a cluster, all servers are standalone. (DunaX servers are test servers, Venus is our main server.)&lt;BR /&gt;The java startup file is run from the login script. I also tried to run it in the script file that is copied to the Alpha, but the result is the same.</description>
      <pubDate>Tue, 14 Dec 2004 08:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875307#M31613</guid>
      <dc:creator>Attila Fekete_1</dc:creator>
      <dc:date>2004-12-14T08:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875308#M31614</link>
      <description>The problem is that &lt;BR /&gt;&lt;BR /&gt;$ java -version&lt;BR /&gt;&lt;BR /&gt;will just return the THEN valid version of Java, wich has been set by running the appropiate JAVA setup script. vor 1.1.8, is was SYS$MANAGER:JAVA$SETUP.com, later version include the version in the name.&lt;BR /&gt;That means you'll need a commandprocedure to be executed by rsh to run this procedure AND the java command.&lt;BR /&gt;&lt;BR /&gt;The easy way (well, easy) is indeed to scan SYS$SYSTEM for JAVA*.DIR, assuming it has been installed on the default location. You _may_ chech SYS$MANAGER for JAVA*SETUP.COM files, these will surely exist no matter where Java is installed. Then, eventually,  execute it after which JAVA -VERSION will give you the right version number. But since the version number is in the directory name, you have your data regardless running Java.&lt;BR /&gt;&lt;BR /&gt;(For an script: do you have TOMCAT installed? The startup script scans the JAVA versions and will use the latest found!)&lt;BR /&gt;&lt;BR /&gt;Another way - which may require system privileges - is to scan the output of &lt;BR /&gt;$ PROD SHOW PRODUCT&lt;BR /&gt;where each installed java will show up as the installation kit comes as a PCSI file.&lt;BR /&gt;&lt;BR /&gt;Also, what Jan explained: if JAVA is installed on it's default location (VMS$COMMON:[JAVA&lt;VERSION&gt;]) and the disk is a shared one, the installation will be shared by each node so you have to run it from one node only.&lt;BR /&gt;&lt;BR /&gt;Willem&lt;BR /&gt;&lt;/VERSION&gt;</description>
      <pubDate>Tue, 14 Dec 2004 08:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875308#M31614</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-12-14T08:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875309#M31615</link>
      <description>Thanks, this runing this java$setup helped. The problem will be to find out which version is valid.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Attila</description>
      <pubDate>Tue, 14 Dec 2004 08:52:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875309#M31615</guid>
      <dc:creator>Attila Fekete_1</dc:creator>
      <dc:date>2004-12-14T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Java version from script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875310#M31616</link>
      <description>So Java$XXXstartup.com must be run before asking the version.</description>
      <pubDate>Tue, 14 Dec 2004 08:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/java-version-from-script/m-p/4875310#M31616</guid>
      <dc:creator>Attila Fekete_1</dc:creator>
      <dc:date>2004-12-14T08:54:41Z</dc:date>
    </item>
  </channel>
</rss>

