<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Steph,<br><br>these steps work fine for me:<br>1) follow the general instructions to create a buid environment:<br>http://www.mkgmap.org.uk/dev/index.html<br><br>2) modify build.xml, change the line<br><exclude name="**/optional/*.java"/><br>to<br><exclude name="**/dem/optional/*.java"/><br>3) change into the directory containing build.xml<br>3) run the commands <br>ant resolve-optional<br>ant dist<br>to build mkgmap.jar with PrecompSeaGenerator <br>4) run a command similar to this<br>java -Xmx6800m -cp .\dist\mkgmap.jar;.\lib\optional\* uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator f:\osm\land-polygons-split-4326\land_polygons.shp WGS84 e:\work\sea<br><br>Gerd<br><br><div>> Date: Tue, 3 Mar 2015 20:54:22 -0300<br>> From: st3ph.martin@laposte.net<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: [mkgmap-dev] Generate coastlines<br>> <br>> Hi,<br>> <br>> I tried to generate coastlines according to this :<br>> http://gis.19327.n5.nabble.com/coastline-td5745923i20.html<br>> <br>> At the end, when I ran mkgmap I got an error :<br>> <br>> Exception in thread "main" java.lang.NoClassDefFoundError:<br>> org/opengis/referencing/crs/CoordinateReferenceSystem<br>>         at java.lang.Class.getDeclaredMethods0(Native Method)<br>>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)<br>>         at java.lang.Class.getMethod0(Class.java:2856)<br>>         at java.lang.Class.getMethod(Class.java:1668)<br>>         at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)<br>>         at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)<br>> Caused by: java.lang.ClassNotFoundException:<br>> org.opengis.referencing.crs.CoordinateReferenceSystem<br>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)<br>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)<br>>         at java.security.AccessController.doPrivileged(Native Method)<br>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)<br>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)<br>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)<br>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)<br>>         ... 6 more<br>> <br>> My command :<br>> java -Xms$JXMS -Xmx$JXMX -cp<br>> "$WORKDIR"/mkgmap/dist/mkgmap.jar:../lib/optional/* \<br>> uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator \<br>> "$SHAPEDIR"/land_polygons.shp WGS84 sea-"$DATE"<br>> <br>> java version "1.7.0_75"<br>> OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)<br>> OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)<br>> <br>> Can you see where I failed ?<br>> <br>> Steph<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>