2009/12/8 Imran Rajjad <[email protected]>

> i had same problem so i had to download and install JAI manualy

The downloaded jars are configed to the buildpath directly or use maven?

>
> regards,
> Imran
>
> On Tue, Dec 8, 2009 at 12:44 PM, maven apache <[email protected]>wrote:
>
>> Hi:
>> follow the qucikstart page:
>> http://www.geotools.org/quickstart.html, I try to read a shapefile and
>> display them in a frame,and under the item:
>>
>> How to read and display a shapefile
>> It shows how to do .
>> However after compile the sourcs,when I run it,it throws a
>> exception:Exception in thread "main" java.lang.NoClassDefFoundError:
>> javax/media/jai/PropertySource"
>> I think it need the jai-related jars.
>> But I am using maven as the build tool,if the gt-swing.jar(maybe some
>> other geotools-related jars) has defined a dependency named JAI, it will
>> download the JAI atomically,so I wonder why?
>>
>> The following is the error messgae:
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> javax/media/jai/PropertySource
>> at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> ...................................................................................
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> 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.kingxip.ReadShapeFile.main(ReadShapeFile.java:30)
>> Caused by: java.lang.ClassNotFoundException:
>> javax.media.jai.PropertySource
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>> at java.security.AccessController.doPrivileged(Native Method)
>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>> ... 29 more
>>  --------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> Return on Information:
>> Google Enterprise Search pays you back
>> Get the facts.
>> http://p.sf.net/sfu/google-dev2dev
>>
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>
>
> --
> I.R
>
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to