Yes that does help alittle yes.
However, i still don't know what to do when i see the
- <dependency>
<groupId>javax.media</groupId>
<artifactId>jai_core</artifactId>
- <!-- The version number is specified in the parent POM.
-->
<scope>provided</scope>
- <!-- Users should execute JAI installer.
-->
</dependency>
- <dependency>
<groupId>javax.media</groupId>
<artifactId>jai_imageio</artifactId>
- <!-- The version number is specified in the parent POM.
-->
<scope>provided</scope>
- <!-- Users should execute JAI installer.
-->
</dependency>
i've downloaded both the JMF and JAI and installed it but i don't know what to do with those pom dependecies. What do i need to do exactly?
Also, the gt-epsg-wkt does not seem to download as i get errors so i changed to gt-epsg-hsql, is that OK?
I've compied the .shp file and the other files but when i run the app and select the .shp file nothing appears. but instead i get the following in my output pannel:
[Fatal Error] :1:8: The processing instruction target matching "[xX][mM][lL]" is not allowed.
java.lang.RuntimeException: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.geotools.styling.SLDParser.readXML(SLDParser.java:290)
at MapViewer.load(MapViewer.java:129)
at MapViewer.actionPerformed(MapViewer.java:191)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.geotools.styling.SLDParser.readXML(SLDParser.java:286)
... 27 more
At present, this is what i have in my pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="
http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>demo</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>demo</name>
<url>
http://maven.apache.org</url>
<properties>
<geotoolsVersion>2.5.5</geotoolsVersion>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-main</artifactId>
<version>${geotoolsVersion}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-api</artifactId>
<version>${geotoolsVersion}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-referencing</artifactId>
<version>${geotoolsVersion}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-mappane</artifactId>
<version>${geotoolsVersion}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>${geotoolsVersion}</version>
</dependency>
</dependencies>
<!-- ===========================================================
-->
<!-- Build Configuration
-->
<!-- ===========================================================
-->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>org.geotools.demo.mappane.MapViewer</mainClass>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>data</directory>
<includes>
<include>**</include>
</includes>
</resource>
</resources>
</build>
</project>