I have had a second report of this problem (this time from a customer so I have
to fix it!)
Short term:
- It was resolved by installing JAI + ImageIO into the JRE (as per the
quickstart links);
- however I don't think that should be a required fix....
Long term:
It would make sense to me that JAI would be supplied as a "provided" dependency
in maven. This would allow people to use JAI if they have installed in in their
JRE; or they could add it to their application via maven.
Let me check with "mvn dependency:tree"
[INFO] org.geotools:gt-swing:jar:8-SNAPSHOT
[INFO] +- org.geotools:gt-render:jar:8-SNAPSHOT:compile
[INFO] | +- org.geotools:gt-main:jar:8-SNAPSHOT:compile
[INFO] | | +- org.geotools:gt-api:jar:8-SNAPSHOT:compile
[INFO] | | +- com.vividsolutions:jts:jar:1.12:compile
[INFO] | | | \- xerces:xercesImpl:jar:2.7.1:compile (version managed from 2.4.0)
[INFO] | | \- jdom:jdom:jar:1.0:compile
[INFO] | +- org.geotools:gt-coverage:jar:8-SNAPSHOT:compile
[INFO] | | +- it.geosolutions.imageio-ext:imageio-ext-tiff:jar:1.1.0:compile
[INFO] | | | +-
it.geosolutions.imageio-ext:imageio-ext-utilities:jar:1.1.0:compile
[INFO] | | | +- javax.media:jai_codec:jar:1.1.3:compile
[INFO] | | | \- javax.media:jai_imageio:jar:1.1:compile
[INFO] | | +- org.jaitools:jt-zonalstats:jar:1.2.0:compile
[INFO] | | \- org.jaitools:jt-utils:jar:1.2.0:compile
[INFO] | \- org.geotools:gt-cql:jar:8-SNAPSHOT:compile
[INFO] +- org.geotools:gt-wms:jar:8-SNAPSHOT:compile
[INFO] | +- org.geotools:gt-referencing:jar:8-SNAPSHOT:compile
[INFO] | | +- java3d:vecmath:jar:1.3.2:compile
[INFO] | | +- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] | | \- org.geotools:gt-metadata:jar:8-SNAPSHOT:compile
[INFO] | | \- org.geotools:gt-opengis:jar:8-SNAPSHOT:compile
[INFO] | | \- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
[INFO] | \- org.geotools:gt-xml:jar:8-SNAPSHOT:compile
[INFO] +- org.geotools:gt-shapefile:jar:8-SNAPSHOT:test
[INFO] | \- org.geotools:gt-data:jar:8-SNAPSHOT:test
[INFO] +- com.miglayout:miglayout:jar:swing:3.7:compile
[INFO] +- javax.media:jai_core:jar:1.1.3:provided (scope not updated to compile)
[INFO] \- junit:junit:jar:4.4:test
So there it is listed "as provided"; leaving people the option of if they add
it or install locally.
Q: Is Quickstart broken?
Micheal Bedward - do we need to update our Quickstart with a maven dependency
on jai so it works "out of the box"?
Q: Is the download complete?
Chanouki - I did not hear from you about the jars being included in the
download? I have released 8.0-M1 which *does* include the jars. Can you try
this out and confirm that this works for you - and fixes the problem??
--
Jody Garnett
On Saturday, 9 July 2011 at 12:20 AM, Jody Garnett wrote:
> I am assembling the 8.0-M1 distribution now and did a quick check:
>
> > ls ja*
> jai_codec-1.1.3.jar jai_imageio-1.1.jar
>
> So the JAI jars are there; can you confirm you see them on your side?
> --
> Jody Garnett
>
>
> On Friday, 8 July 2011 at 9:01 PM, Jody Garnett wrote:
>
> > Good Evening Chaouki:
> > > I have a problem to run my project with the download geotools alternative
> > > to M2Eclipse
> > > (http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html).
> > >
> > >
> > >
> > >
> >
> > Thanks for testing! I would love some feedback on that one ...
> > > I have this messages when I try to run it :
> > > java.lang.NoClassDefFoundError: javax/media/jai/PropertySource
> > > at java.lang.ClassLoader.defineClass1(Native Method)
> > > at java.lang.ClassLoader.defineClassCond(Unknown Source)
> > > at java.lang.ClassLoader.defineClass(Unknown Source)
> > The JAI jar is sometimes installed in your JRE (it is a java extension). I
> > think we tried to include it in the download but it could be a mistake ...
> >
> > You can however download from the website; the instructions are at the top
> > of the quick start.
> > > when I want to remove the jar files like it was explained in the
> > > procedure :
> > > http://docs.geotools.org/latest/userguide/tutorial/quickstart/eclipse.html
> > > I didn't found some of them in the downloaded zip file
> > > geotools-8.0-M0-bin.zip(
> > > gt-epsg-h2
> > > gt-epsg-oracle
> > > gt-db2
> > > gt-oracle-spatial
> > > gt-jdbc-oracle )
> > >
> > >
> > >
> > >
> > >
> >
> > Some of them are old and have been retired; gt-db2, gt-oracle-spatial and
> > so on; so I bet I need to update that list. What ones *were* there?
> > > Someone can give the right procedure to install jars in my project please
> > > with the version 8.0 of geotools.
> > I don't have a download of 8.0-M0 handy; but I am assembling 8.0-M1 later
> > this weekend. I will try and go through and update the instructions; if you
> > can check them for me after to see if they work :-)
> > > I tried the m2eclipse method the project run perfectly but I didn't found
> > > how to export it in a runnable jar's.
> > Interesting question; I am not a maven expert - I know that they have tools
> > to package up WARs for application servers; they may have something to
> > package up an application.
> >
> > There is an "assembly" plugin; which is the subject of a couple of FAQ
> > questions in the user guide; perhaps that is what assembly does.
> > > I have a windows 7 64 bit and an Eclipse Helios environment.
> > Nice.
> > Jody
> >
> >
> >
> >
> >
> >
>
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users