PATH_SEPARATOR not platform independent
Marco Trudel
mtrudel@gmx.ch
Mon Oct 9 20:17: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.
Ok. How to do that? _Jv_platform_path_separator is jchar but I need
char*. How to convert that correctly?
thanks
Marco
More information about the Java
mailing list