Reprojection jar can't locate my HSQL database.

5 messages Options
Embed this post
Permalink
Michael Owonibi

Reprojection jar can't locate my HSQL database.

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Martin Desruisseaux

Re: Reprojection jar can't locate my HSQL database.

Reply Threaded More More options
Print post
Permalink
Hello Michael

I don't know how is created your runnable JAR file... There is nothing special
to do regarding the EPSG database. Just having the JAR on the classpath should
be suffisient.

        Martin

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Paulm

Re: Reprojection jar can't locate my HSQL database.

Reply Threaded More More options
Print post
Permalink
In reply to this post by Michael Owonibi
Michael,
Have you or anyone else found any solution of your problem? If so, can you please tell me how you did it, because I have the same problem... :(

I'm using GeoTools 2.5.2

Kind regards,
Paul

Michael Owonibi wrote:
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
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Daniele Romagnoli

Re: Reprojection jar can't locate my HSQL database.

Reply Threaded More More options
Print post
Permalink
Hi,
which geotools jars do you have on your classpath?
Are you leveraging on gt-epsg-hsql and the related dependencies? (It allows to decode EPSG CRSs).

Regards,
Daniele



On Wed, Oct 21, 2009 at 4:19 PM, Paulm <[hidden email]> wrote:

Michael,
Have you or anyone else found any solution of your problem? If so, can you
please tell me how you did it, because I have the same problem... :(

I'm using GeoTools 2.5.2

Kind regards,
Paul


Michael Owonibi wrote:
>
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>

--
View this message in context: http://n2.nabble.com/Reprojection-jar-can-t-locate-my-HSQL-database-tp2180394p3865581.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users



--
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax:     +39 0584983027
mob:   +39 328 0559267


http://www.geo-solutions.it

-------------------------------------------------------


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Paulm

RE: [Geotools-gt2-users] Reprojection jar can't locate my HSQL database.

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
I've bee cleaning up and
the only jars I'm now exporting from my GeoTools package are:
 
geoapi
gt-api
gt-library
gt-main
gt-metadata
gt-referencing
hsqldb
jts
vecmath
gt-epsg-hsql
 
But my runnable jar is still 25 mb, strange....
 
Kind regards,
Paul
 
 


From: Daniele Romagnoli [via OSGeo.org] [mailto:[hidden email]]
Sent: den 21 oktober 2009 17:26
To: Malm Paul
Subject: Re: [Geotools-gt2-users] Reprojection jar can't locate my HSQL database.

Hi,
which geotools jars do you have on your classpath?
Are you leveraging on gt-epsg-hsql and the related dependencies? (It allows to decode EPSG CRSs).

Regards,
Daniele



On Wed, Oct 21, 2009 at 4:19 PM, Paulm <[hidden email]> wrote:

Michael,
Have you or anyone else found any solution of your problem? If so, can you
please tell me how you did it, because I have the same problem... :(

I'm using GeoTools 2.5.2

Kind regards,
Paul


Michael Owonibi wrote:

>
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>

--
View this message in context: http://n2.nabble.com/Reprojection-jar-can-t-locate-my-HSQL-database-tp2180394p3865581.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users



--
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax:     +39 0584983027
mob:   +39 328 0559267


http://www.geo-solutions.it

-------------------------------------------------------


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users