QuickStart.java from tutorial not working

5 messages Options
Embed this post
Permalink
Imran Rajjad

QuickStart.java from tutorial not working

Reply Threaded More More options
Print post
Permalink
Hi,

I want to start working with geotools, after configuring maven and
eclipse I copied the whole quickstart.java and tried to run it but its
giving the following error
-----------
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/media/jai/PropertySource
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at org.geotools.swing.action.InfoAction.<init>(InfoAction.java:56)
        at org.geotools.swing.action.InfoAction.<init>(InfoAction.java:44)
        at org.geotools.swing.JMapFrame.initComponents(JMapFrame.java:310)
        at org.geotools.swing.JMapFrame.showMap(JMapFrame.java:123)
        at org.geotools.demo.QuickStart.main(QuickStart.java:52)

--
I.R



--
I.R

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Jody Garnett-2

Re: QuickStart.java from tutorial not working

Reply Threaded More More options
Print post
Permalink
You will need to have Java Advanced Imaging jars either in your
classpath or installed into the your JRE as an extension.

Jody

On Wed, Nov 11, 2009 at 10:17 PM, Imran Rajjad <[hidden email]> wrote:

> Hi,
>
> I want to start working with geotools, after configuring maven and
> eclipse I copied the whole quickstart.java and tried to run it but its
> giving the following error
> -----------
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/media/jai/PropertySource
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>        at org.geotools.swing.action.InfoAction.<init>(InfoAction.java:56)
>        at org.geotools.swing.action.InfoAction.<init>(InfoAction.java:44)
>        at org.geotools.swing.JMapFrame.initComponents(JMapFrame.java:310)
>        at org.geotools.swing.JMapFrame.showMap(JMapFrame.java:123)
>        at org.geotools.demo.QuickStart.main(QuickStart.java:52)
>
> --
> I.R
>
>
>
> --
> I.R
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Geotools-gt2-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: QuickStart.java from tutorial not working

Reply Threaded More More options
Print post
Permalink
Hi Imran,

Just to add to Jody's reply, you can find some more information about
JAI for GeoTools use here...
http://docs.codehaus.org/display/GEOT/Manual+JAI+Installation

Please let us know how you get on.

Michael

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Imran Rajjad

Re: QuickStart.java from tutorial not working

Reply Threaded More More options
Print post
Permalink
HI.

Jody, Micheal!! thanx a lot commrades it worked

by the way is there a PDF version available for user and developer guide?

regards,
Imran
GIS Developer
------------------
IAC
ISB.Pakistan

On 11/12/09, Michael Bedward <[hidden email]> wrote:

> Hi Imran,
>
> Just to add to Jody's reply, you can find some more information about
> JAI for GeoTools use here...
> http://docs.codehaus.org/display/GEOT/Manual+JAI+Installation
>
> Please let us know how you get on.
>
> Michael
>


--
I.R

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: QuickStart.java from tutorial not working

Reply Threaded More More options
Print post
Permalink
Hi Imran,

> Jody, Micheal!! thanx a lot commrades it worked
>

Excellent - the sound of a satisfied customer :)

> by the way is there a PDF version available for user and developer guide?

Not at the moment, but we've started the (long) process of
transferring the user's guide on the wiki over to Sphinx generated web
pages and this will eventually make it easier to produce the docs in
other formats. It'll take a while though.

Meanwhile, please let us know about any problems or suggestions that
you may have on the Quickstart or example pages
(http://geotools.org/examples/).

Michael

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users