<?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: Invalid or corrupt jarfile in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491827#M42803</link>
    <description>I'm actually pushing, not pulling.&lt;BR /&gt;&lt;BR /&gt;For my FTP server (MultiNet), the magic incantation seems to be to send the FTP site-specific command&lt;BR /&gt;&lt;BR /&gt;SITE RMS STREAM ON&lt;BR /&gt;&lt;BR /&gt;I couldn't see any way to make that the default on the server side.&lt;BR /&gt;&lt;BR /&gt;I haven't found any way to send that with my FTP client (FileZilla) but, for example, in the Windows command line FTP client, you would use the "literal" command to send that site-specific command and it does work.&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Sep 2009 22:50:07 GMT</pubDate>
    <dc:creator>Derek Garson</dc:creator>
    <dc:date>2009-09-07T22:50:07Z</dc:date>
    <item>
      <title>Invalid or corrupt jarfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491823#M42799</link>
      <description>This is just to help anyone else who bumps into this.&lt;BR /&gt;&lt;BR /&gt;I built a Java application into a jar file on Windows and it worked fine.&lt;BR /&gt;&lt;BR /&gt;I FTPd it over to VMS and&lt;BR /&gt;&lt;BR /&gt;    java -jar xxx.jar&lt;BR /&gt;&lt;BR /&gt;gives&lt;BR /&gt;&lt;BR /&gt;Invalid or corrupt jarfile xxx.jar&lt;BR /&gt;&lt;BR /&gt;Strangely&lt;BR /&gt;&lt;BR /&gt;    jar -tfv xxx.jar&lt;BR /&gt;&lt;BR /&gt;is completely happy with the jar file, as is&lt;BR /&gt;&lt;BR /&gt;    unzip /list xxx.jar&lt;BR /&gt;&lt;BR /&gt;I eventually realized that java -jar won't accept a jar file that has FIX 512 record format (which is what it got after the FTP).&lt;BR /&gt;&lt;BR /&gt;This is a non-sensical inconsistency. Either java and jar should both reject the file or neither should reject the file (preferably the latter!).&lt;BR /&gt;&lt;BR /&gt;Anyway&lt;BR /&gt;&lt;BR /&gt;    set file/attr=rfm=stmlf xxx.jar&lt;BR /&gt;&lt;BR /&gt;fixes the problem.&lt;BR /&gt;&lt;BR /&gt;To add to the inconsistency, doing the same exercise with a class file, java is quite happy i.e. java is quite happy to load a class file that has FIX 512 record format.</description>
      <pubDate>Fri, 04 Sep 2009 06:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491823#M42799</guid>
      <dc:creator>Derek Garson</dc:creator>
      <dc:date>2009-09-04T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid or corrupt jarfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491824#M42800</link>
      <description>This is known and very likely documented in any of the Java on VMS manuals. But it seems worth to repeat any time one mentions Java and VMS in one sentence: make sure all your files are in Stream_LF.&lt;BR /&gt;&lt;BR /&gt;It may work for some other files - yeah you can use your favorite editor and create a java source - but you may see unexpected or no results. If javac detects a syntax error in your RFM:VAR source, it will not be able to point to the right spot.&lt;BR /&gt;&lt;BR /&gt;$ javac x.java&lt;BR /&gt;x.java:5: unclosed string literal&lt;BR /&gt;                       ^&lt;BR /&gt;x.java:6: ')' expected&lt;BR /&gt;  ^&lt;BR /&gt;2 errors&lt;BR /&gt;&lt;BR /&gt;$ convert/fdl=stmlf x.java;1 x.java;2&lt;BR /&gt;$ javac x.java&lt;BR /&gt;x.java:5: unclosed string literal&lt;BR /&gt;    System.out.println("Hello);&lt;BR /&gt;                       ^&lt;BR /&gt;x.java:6: ')' expected&lt;BR /&gt;  }&lt;BR /&gt;  ^&lt;BR /&gt;2 errors&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;I heard that someone copied a jpeg file with ftp/bin, which wasn't displayed by his Java application on VMS at all.&lt;BR /&gt;&lt;BR /&gt;You probably want to create an archive on the source side (by zip, backup...) and resolve it at the target side. That worked for me.&lt;BR /&gt;&lt;BR /&gt;I once suggest to VMS Java engineering to make T-shirts with the printings "Java on VMS" on the front and "Stream_LF" on the back. It still seems a good giveaway.</description>
      <pubDate>Fri, 04 Sep 2009 08:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491824#M42800</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-09-04T08:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid or corrupt jarfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491825#M42801</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I FTPd it over to VMS [...]&lt;BR /&gt;&lt;BR /&gt;Note that if you're pulling it over to VMS,&lt;BR /&gt;wget has a potentially useful option.  From&lt;BR /&gt;the "-h" help:&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;FTP options:&lt;BR /&gt;       --ftp-stmlf             Use Stream_LF format for all binary FTP files.&lt;BR /&gt;[...]</description>
      <pubDate>Fri, 04 Sep 2009 12:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491825#M42801</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-09-04T12:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid or corrupt jarfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491826#M42802</link>
      <description>Digressing slightly,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/wget/manual/wget.html" target="_blank"&gt;http://www.gnu.org/software/wget/manual/wget.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;says&lt;BR /&gt;&lt;BR /&gt;"a port to VMS is maintained by Steven Schweda, and is available at &lt;A href="http://antinode.org/" target="_blank"&gt;http://antinode.org/&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;however that web site doesn't readily yield anything useful.&lt;BR /&gt;&lt;BR /&gt;Is the link in the wget manual out of date or is that web site just unhelpful?&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Sep 2009 22:21:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491826#M42802</guid>
      <dc:creator>Derek Garson</dc:creator>
      <dc:date>2009-09-07T22:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid or corrupt jarfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491827#M42803</link>
      <description>I'm actually pushing, not pulling.&lt;BR /&gt;&lt;BR /&gt;For my FTP server (MultiNet), the magic incantation seems to be to send the FTP site-specific command&lt;BR /&gt;&lt;BR /&gt;SITE RMS STREAM ON&lt;BR /&gt;&lt;BR /&gt;I couldn't see any way to make that the default on the server side.&lt;BR /&gt;&lt;BR /&gt;I haven't found any way to send that with my FTP client (FileZilla) but, for example, in the Windows command line FTP client, you would use the "literal" command to send that site-specific command and it does work.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Sep 2009 22:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491827#M42803</guid>
      <dc:creator>Derek Garson</dc:creator>
      <dc:date>2009-09-07T22:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid or corrupt jarfile</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491828#M42804</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] available at &lt;A href="http://antinode.org/" target="_blank"&gt;http://antinode.org/&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;It's antinode.info now (sad to say).  Have&lt;BR /&gt;all the Web search engines gone out of&lt;BR /&gt;business, so that it's really difficult to&lt;BR /&gt;find?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] in the Windows command line FTP&lt;BR /&gt;&amp;gt; client, you would use the "literal" command&lt;BR /&gt;&amp;gt; [...]&lt;BR /&gt;&lt;BR /&gt;With some command-line FTP clients, the&lt;BR /&gt;"quote" command does the job of passing&lt;BR /&gt;commands to the server.  I don't know about&lt;BR /&gt;FileZilla.</description>
      <pubDate>Tue, 08 Sep 2009 00:22:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/invalid-or-corrupt-jarfile/m-p/4491828#M42804</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-09-08T00:22:03Z</dc:date>
    </item>
  </channel>
</rss>

