PATH_SEPARATOR not platform independent
Marco Trudel
mtrudel@gmx.ch
Mon Oct 9 08:09:00 GMT 2006
Tom Tromey wrote:
>>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:
>
> Marco> I found the problem why -Djava.library.path doesn't work for win32:
> Marco> prims.cc uses "PATH_SEPARATOR" which is always set to ":". Thus it
> Marco> works only for linux.
> Marco> I now don't know where PATH_SEPARATOR comes from. I assumed that it's
> Marco> comimg from gcc/system.h. But adapting it didn't help.
> Marco> If someone tells me where it comes from, I'll write a patch.
>
> Nice catch, thanks.
> Change it to use _Jv_platform_path_separator and you should be ok.
I tried that but it didn't work. I assume posix.h gets included
regardless of the plattform. I will take a closer look at the weekend...
thanks
Marco
More information about the Java
mailing list