Greg Ederer a écrit :
> My application is now running splendidly when I run it using NetBeans  
> (thanks for all the help!)
> 
> I would now like to create a binary executable that I can run on  
> another machine.  I have added the following to my pom.xml:
> 
> (...snip...)
> 
> Building with Maven now creates a jar with dependencies.  However,  
> when I try to run the jar (java -jar ...), I get:
> 
> org.geotools.factory.FactoryNotFoundException: No factory of kind 
> "CRSAuthorityFactory" found.



If you have merged every JAR files into a single one, then you must ensure that 
the META-INF/services files get merged. Last time I looked at the Maven 
plugins, 
it didn't merged those files - it just overwrite them.

More specifically, both the gt-referencing.jar and gt-referencing-epsg.jar 
files 
have a META-INF/services/org.opengis.referencing.crs.CRSAuthorityFactory file. 
You must ensure that the big JAR file you created contains a file of the same 
name which is the *concatenation* of the two above-cited jar files. Same 
applies 
for every files in META-INF/services/.

     Martin

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to