[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] Re: [Geotools-gt2-users] spearfish example in an eclipse plugin
|
Xavier Méhaut wrote:
Bonjour à tous,
I'm quite worry with something quite simple ; I've succeeded running
the spearfish demo with Mysql as standalone java application...but
when I tried (with the same code) to include it in an eclipse plugin,
I obtains systematically this meaningful eroor msg :
We are running geotools code from eclipse plugin land.
One thing we did was make a single plugin called libs and included all
the opensource jars in this one plugin, this makes sure they are in the
same classloader.
Eclipse keeps each plugin is a separate class loader and figures out who
can see whom based on dependency. If you have the same jar in different
plugins the actual class files will be from different class loaders and
thus will not be able to be cast to each other.
Not sure if this information helps, but what the heck.
Our libs plugin is available for svn checkout here:
- http://svn.geotools.org/udig/trunk/plugins/net.refractions.udig.libs/
It is LGPL just like geotools so go ahead and use it in your project.
The externalToolBuilders and build.xml file are *magic* - they will
download the latest 2.1.x jars, either in your local maven repository,
or from the web.
To repeat the plugin needs to be "cleaned" once, it will then fetch all
the latest jars :-)
Jody