My code runs in eclipse but when I package it into an executable jar I get
this error:

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107] Exception in
thread "main"
10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]
org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:4326"
from authority "European Petroleum Survey Group" found for object of type
"IdentifiedObject".
10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.AbstractAuthorityFactory.noSuchAuthorityCode(AbstractAuthorityFactory.java:949)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.PropertyAuthorityFactory.getWKT(PropertyAuthorityFactory.java:314)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.PropertyAuthorityFactory.createCoordinateReferenceSystem(PropertyAuthorityFactory.java:388)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:781)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:638)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:798)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:729)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)

10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.CRS.decode(CRS.java:420)
10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.CRS.decode(CRS.java:348)
10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.geotools.referencing.CRS.decode(CRS.java:348)
10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.stem.utilities.treepit.toLatLong(treepit.java:210)
10/1/09 8:11:09 PM [0x0-0x3d43d4].com.apple.JarLauncher[19107]  at
org.stem.utilities.treepit.main(treepit.java:69)

These are the jars included in the project:

geoapi-2.2.0.jar
gt-epsg-extension-2.5.7.jar
vecmath-1.3.1.jar
jsr-275-1.0-beta-2.jar
gt-referencing-2.5.7.jar
gt-epsg-wkt-2.5.7.jar
gt-main-2.5.7.jar
gt-metadata-2.5.7.jar
jts-1.9.jar
gt-jts-wrapper-2.5.5.jar
gt-shapefile-2.5.7.jar
gt-api-2.5.7.jar

The code breaks here:

    CoordinateReferenceSystem wgs84 = CRS.decode("EPSG:4326");

I've looked through nabble but I haven't found anything pertinent.  Any idea
what I'm missing?

sophia
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to