[Gvsig_english] DLL pollution in JRE
César Martínez Izquierdo
cesar.martinez at iver.es
Mon Sep 22 09:10:42 CEST 2008
Olivier ERTZ escribió:
> Dear list and gvsig team,
> after installing gvSIG on Windows (I tried 1.1.1), gvSIG directory
> contains some DLLs in a lib directory. But why are these DLLs also
> copied to the bin directory of the JRE ? Setting the system path or
> using the java.library.path would avoid this copy and keep java process
> to know where to catch these libraries.
>
> Am I wrong ?
> Olivier
>
Hi Olivier,
it should work as you suggest, but unfortunately, the load process of
libraries is not so nice in Windows.
Libraries are searched in the directory from which the application
loaded, then in the current working directory, then in the PATH, and
finally in the directories pointed by java.library.path. This is not a
problem of Java, is the standard behaviour in Windows (however,
behaviour is a bit different depending on the Windows verison).
Summarizing: in the past, we had problems because some people installed
GDAL or other libraries in the PATH, and thus their GDAL version was
loaded instead of gvSIG GDAL version, and this caused compatibility
problems. To solve it, the safest way is to install our DLLs in the
directory from which the application loaded (the JRE bin dir), and
that's what we do. It's not clean, but it's safe.
Input is welcome.
Regards,
César
--
César Martínez Izquierdo
gvSIG development team
http://www.gvsig.gva.es
IVER T.I.
C/ Lérida 20
46009 Valencia - Spain
http://www.iver.es
Este mensaje y sus archivos son confidenciales. No está permitida su reproducción o distribución sin la autorización expresa de "IVER Tecnologías de la Información". Si usted no es el destinatario previsto, queda desautorizado cualquier uso, acceso o copia de este mensaje. Si ha recibido este mensaje por error, por favor bórrelo e infórmenos por esta misma vía.
More information about the Gvsig_internacional
mailing list