[Gvsig_english] Re: OS X build & native libraries - dylib, jnilib, ... (2)

Francisco José fpenarru at iver.es
Wed Apr 5 18:02:24 CEST 2006


Mija escribió:
> Well, in fact I CAN tell you something about the Extensions method: I 
> wouldn't use it, unless I really had a good reason to do so.
>
> (Because of how classloaders work in Java, a class loaded from an 
> Extensions directory won't be able to load classes (nor resources?) 
> from the ClassPath. So you could find some surprising and difficult to 
> diagnose problems... )
>
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional

I don't know if this could be the point, but.... In gvSIG you can use 
classes from other Extensions. Just put in config.xml something like that:

<plugin-config>
    <libraries library-dir="./"/>
    <depends plugin-name="com.iver.cit.gvsig" />
    <depends plugin-name="com.iver.cit.gvsig.jdbc_spatial" />

In this example (Edition extension, for example) we are using classes 
from gvSIG extension (the main application) and also from jdbc_spatial 
extension (access to PostGIS and mySQL spatial databases).

Have fun.

-- 
Francisco José Peñarrubia
Equipo gvSIG

IVER T.I. S.A.
c/Salamanca 50
46005 Valencia
Spain




More information about the Gvsig_internacional mailing list