Hey all,

after a day or so spent struggling to see how users of the SDK could get
started, I have vanished in a puff of smoke. The dreaded CLASSPATH has
reared its ugly head and incinerated me with a belch of fire.


The question is how to *use* the geotools-bin*.zip zipball. To run a
simple "hello geotools" type program, a user has to (1) get the jars out
of the zipball and (2) get the jars onto some classpath. 

The elegant solution would be for Geotools to package the whole thing in
some functional jar but that seems like it requires special classloader
magic, which, for One-Jar and Bootstrapper, must be done during
packaging of the user's code---not a place to start. The ultimate
solution is to get users using Maven2 but that's a bit heavy for
starting out. So I have been exploring other possibilities...

So far, I can get the jars out trivially:

  unzip -d theGTJarsDir -j geotools-bin-2.2.RC1.zip "*.jar"

but then, adding that list to the classpath is a wee headache. First off
we can't use environmental variables. This breaks in tcsh because the
classpath becomes longer than the 1024 character buffer available. So we
either (1) have to pass a mongo commandline statement (which i have not
yet figured out how to script) or (2) package user code into a jar file
using the manifest file for the classpath list, scripting a manifest
generator.

Any other ideas? Any wisdom? Any magic spells to restore sanity to the
class loader mechanism? 

BTW, mustang apparently will have a * option for including all the jars
in a directory---magic in our future.

--adrian, just before being blown away towards the dance floor.





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to