Dear All, 

 

I am wondering if anybody can help me with this.  I am trying to implement
reprojection and this runs well in eclipse with everything ok, but when I
exported the file as a run-able jar,  the reprojection doesn't seem to work
but it gives this error "exception in thread "main"
org.opengis.referencing.NoSuchAuthorityCodeException". Maybe it is defined
in an unreachable JAR file?

 

My codes is given below (it works well in eclipse).

 

import org.geotools.referencing.CRS;

import org.opengis.referencing.FactoryException;

import org.opengis.referencing.NoSuchAuthorityCodeException;

 

 

public class Repojava {

 

      /**

       * @param args

       * @throws FactoryException 

       * @throws NoSuchAuthorityCodeException 

       */

      public static void main(String[] args) throws
NoSuchAuthorityCodeException, FactoryException {

            // TODO Auto-generated method stub

System.out.println(CRS.decode("EPSG:27700"));

 

 

 

      }

 

}

 

 

What do I need to do in exporting this code as a run-able jar file.

 

Thanks!

 

 

Michael

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to