As an additional information to my question below, I have espg-hsql in my
class path, and, and I don't have any other epsg database.

 

Also, if I delete the database in C:\Documents and Settings\xxxx\Local
Settings\Temp\Geotools\Databases\HSQL, and I run the code in eclipse, it
creates a new database, but when I try to do the same in running the jar
file, it doenst create a new database!!!

 

 

Michael

 

From: Michael Owonibi [mailto:[email protected]] 
Sent: Monday, January 19, 2009 9:48 AM
To: '[email protected]'
Subject: Reprojection jar can't locate my HSQL database.

 

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