This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mohan Build 22.5.03


> > > > 2.) gcj fails to list files on other hard disk partitions than C:
> > > ...
> > > >             File f = new File("d:");
> > >
> > > Some bugs have been fixed in the Win32 file handing, no doubt others
> > > remain.
> > >
> > > You could try the POSIX path notation, e.g. "//D/".  It just might work,
> > > at least on NT/2000/XP.
> > 
> > But actually this one does not. What strikes me is that the stuff works if
> > try to get the files from a cd or something but _not_ for hard disk
> > partitions else than C:
> 
> This is weird. It works for me perfectly well. My "D:" is a hard
> disc partition and this program displays whatever is in the current
> working directory of "D:". (Ditto for other drives whether on
> CD or hard disc.)

This really looks weird. I tried the little program compiled on my computer on 
two others.
Always the same result (on Win2k, WinXP home)
Even Wine (stupid thing to do, run a win port of a program on wine ;-)) 
fails. But only when I'm trying to access my fat partitons other than 
C: - other (fake) drives such as h: for home and r: for / work without 
complain...

> 
> Are you *sure* you're using Mohan's latest snapshot? 

I _am_ using Mohans Build from 22/05/2003.

> Why aren't
> stack traces coming out properly in your case? Something's wrong...
Well actually I'd classify myself somewhere below Mohan (<quote>The fact that 
I can build doesn't mean I understand</quote>)
So what do you exactly mean?

I think it's build-time error and not depending on my computer as 
runtime-enviroment

I compiled the program with the usual "gcj -o d.exe --main=DriveC DriveC.java"

Envvars are set as follwing:
MINGW_GCC_PATH=C:\Programme\thisiscool-gcc\gcc-3.3
PATH=%GCC_MINGW_PATH%\bin;%GCC_MINGW_PATH%\..\swt\win32\swt-2052;...
	(the second one for the program to find the swt-dll)
CLASSPATH=.;%GCC_MINGW_PATH%\share\java\libgcj-3.3.jar;%GCC_MINGW_PATH%\..\swt\win32\swt-2052\swt.jar;.....
	and lots to follow 'cause I'm using some xml parsing stuff from apache with 
lots of jars...

This should be all right, as far as I can guess.

Peschmä


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]