Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

load jars from NTFS under linux

Thread view: 
Thomas - 15 Jul 2006 20:22 GMT
Hi folks,

is there any obvious reason why the java compiler
cannot load jars from an NTFS filesystem under Linux (Debian) ?
I know for sure that the path I specify is correct and
I have read permit on that FS (not write though). I can
actually list the content of the jar with any standard
linux utility (cat, less...).
If I copy the same jar on my ext2 fs with the same
permissions (that is 444) the compilation runs just fine.
Any ideas/hints ?

Thomas
Aragorn - 16 Jul 2006 09:25 GMT
On Saturday 15 July 2006 21:22, Thomas stood up and spoke the following
words to the masses in /comp.os.linux.misc...:/

> Hi folks,
>
[quoted text clipped - 7 lines]
> permissions (that is 444) the compilation runs just fine.
> Any ideas/hints ?

Just an educated guess: the double end_of_line character used by
DOS/Windows maybe?  

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.

Like I said, just a guess.  Your mileage may vary... ;-)

Signature

With kind regards,

*Aragorn*
(Registered GNU/Linux user #223157)

Sigmund Hansen - 16 Jul 2006 13:13 GMT
> On Saturday 15 July 2006 21:22, Thomas stood up and spoke the following
> words to the masses in /comp.os.linux.misc...:/
[quoted text clipped - 19 lines]
>
> Like I said, just a guess.  Your mileage may vary... ;-)

I think zip(jars are zips) files are supposed to have CR LF combos.
Bzip and gzip are probably LF only, for any newlines though, but jar
uses the zip format.
John W. Kennedy - 16 Jul 2006 17:22 GMT
>> On Saturday 15 July 2006 21:22, Thomas stood up and spoke the following
>> words to the masses in /comp.os.linux.misc...:/
[quoted text clipped - 22 lines]
> Bzip and gzip are probably LF only, for any newlines though, but jar
> uses the zip format.

No, the ZIP programs normally treat all files as binary, although some
unzip programs can optionally be told to try to convert text files from
whatever they are to whatever is the native. Furthermore, copying a JAR
(or ZIP) file from one filesystem to another would not alter it in the
slightest.

The original poster has not mentioned how he is accessing this NTFS. By
mount, with NTFS code in Linux? By SAMBA? Some other way?

Signature

John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
  -- Charles Williams.  "Taliessin through Logres: Prelude"

bowman - 16 Jul 2006 14:46 GMT
> 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.


Ricardo Palomares Martínez - 16 Jul 2006 18:58 GMT
bowman escribió:

>> 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
[quoted text clipped - 5 lines]
> 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. :-?

Signature

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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.