Thanks for your reply Jody.
I have unzipped the jar project and it looks like it does not contain the
Graphable class. Only these were found http://screencast.com/t/iQ7Hqvuk .
On Tue, Jun 3, 2014 at 3:17 AM, Jody Garnett <jody.garn...@gmail.com> wrote:
> Checking the source code the org.geotools.graph.structure.Graphable
> interface is defined.
>
> I have not used shade myself, perhaps we should check what it did? Do you
> want to check if the jar contains the Graphable class? You can use unzip to
> have a look at the jar contents.
>
>
> Jody Garnett
>
>
> On Tue, Jun 3, 2014 at 2:52 AM, Elena Pop <elena0...@gmail.com> wrote:
>
>> Hello,
>>
>> I need to create an executable jar from my current project. I have
>> followed the steps described on site with the maven shade plugin, however
>> when running the application i get the following error message:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/geotools/graph/st
>> ructure/Graphable
>> at org.geotools.route.Main.main(Main.java:198)
>> Caused by: java.lang.ClassNotFoundException:
>> org.geotools.graph.structure.Grapha
>> ble
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> ... 1 more
>>
>> I also tried to add a geotools jar in the classpath when calling the
>> project jar but that one is retrieving the same error.
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/NeoTech
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> GeoTools-GT2-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users