- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Invalid or corrupt jarfile
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2009 11:56 PM
тАО09-03-2009 11:56 PM
Invalid or corrupt jarfile
I built a Java application into a jar file on Windows and it worked fine.
I FTPd it over to VMS and
java -jar xxx.jar
gives
Invalid or corrupt jarfile xxx.jar
Strangely
jar -tfv xxx.jar
is completely happy with the jar file, as is
unzip /list xxx.jar
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).
This is a non-sensical inconsistency. Either java and jar should both reject the file or neither should reject the file (preferably the latter!).
Anyway
set file/attr=rfm=stmlf xxx.jar
fixes the problem.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2009 01:22 AM
тАО09-04-2009 01:22 AM
Re: Invalid or corrupt jarfile
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.
$ javac x.java
x.java:5: unclosed string literal
^
x.java:6: ')' expected
^
2 errors
$ convert/fdl=stmlf x.java;1 x.java;2
$ javac x.java
x.java:5: unclosed string literal
System.out.println("Hello);
^
x.java:6: ')' expected
}
^
2 errors
$
I heard that someone copied a jpeg file with ftp/bin, which wasn't displayed by his Java application on VMS at all.
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2009 05:40 AM
тАО09-04-2009 05:40 AM
Re: Invalid or corrupt jarfile
Note that if you're pulling it over to VMS,
wget has a potentially useful option. From
the "-h" help:
[...]
FTP options:
--ftp-stmlf Use Stream_LF format for all binary FTP files.
[...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2009 03:21 PM
тАО09-07-2009 03:21 PM
Re: Invalid or corrupt jarfile
http://www.gnu.org/software/wget/manual/wget.html
says
"a port to VMS is maintained by Steven Schweda, and is available at http://antinode.org/"
however that web site doesn't readily yield anything useful.
Is the link in the wget manual out of date or is that web site just unhelpful?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2009 03:50 PM
тАО09-07-2009 03:50 PM
Re: Invalid or corrupt jarfile
For my FTP server (MultiNet), the magic incantation seems to be to send the FTP site-specific command
SITE RMS STREAM ON
I couldn't see any way to make that the default on the server side.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2009 05:22 PM
тАО09-07-2009 05:22 PM
Re: Invalid or corrupt jarfile
It's antinode.info now (sad to say). Have
all the Web search engines gone out of
business, so that it's really difficult to
find?
> [...] in the Windows command line FTP
> client, you would use the "literal" command
> [...]
With some command-line FTP clients, the
"quote" command does the job of passing
commands to the server. I don't know about
FileZilla.