Re: load jars from NTFS under linux



bowman escribió:
Aragorn wrote:

UNIX only has a newline character at the end of each line, but DOS,
Windows and OS/2 have both a carriage return and a newline character at
the end of a line.

Where do the extra characters get added/removed? The OP said that the jar
works if it is copied to an ext2 partition. afaik, the only utility that
messes with terminators is ftp in the text mode. Unfortunately, many
Windows ftp implementations default to text and will add carriage returns
to binary files.


Maybe the JAR looks for its own pathname and tries to write some files in the same directory? As NTFS partitions are usually mounted as read-only in Linux, the writing would fail and the program would end with an exception. :-?


--
If it's true that we are here to help others,
then what exactly are the OTHERS here for?
.



Relevant Pages

  • Re: load jars from NTFS under linux
    ... Windows and OS/2 have both a carriage return and a newline character at ... Windows ftp implementations default to text and will add carriage returns ...
    (comp.lang.java)
  • Binary data, command output, and Ruby
    ... sysadmin disabled basic authentication and left NTLM as the only ... the above fails for binary files. ... Or is Ruby Windows at fault? ...
    (comp.lang.ruby)
  • Read/write binary files in Linux and Windows
    ... I am using the following code to read and write binary files in both a Linux cluster and in Windows PC. ... PGI and Sun compilers (little Endian) ... My intention is to use the same binary files in both systems since I know that both systems are little Endian. ...
    (comp.lang.fortran)
  • Re: Freewrap Broken on Windows?
    ... > but what am I doing wrong on Windows??? ... > (or whatever package is being wrapped). ... the efftcl.tcl file contains only carriage returns at the ... carriage return as a valid TCL command line separator. ...
    (comp.lang.tcl)
  • SUMMARY: a way to add the windows return character
    ... delivered with mtools which can do this (I think some version of mtools ... And you could enter a carriage return ... a way to add the windows return character ...
    (Tru64-UNIX-Managers)