Hey - an update for you.

I was reading the geotools docs and found the following:
- http://docs.geotools.org/latest/userguide/faq.html

There is an example at the end which exactly matches your problem; it
shows how to combine several jars using maven in a safe manner.

Jody

On Mon, Aug 30, 2010 at 8:49 AM, Jody Garnett <[email protected]> wrote:
> GeoTools uses the META_INF/services folder to "wire itself up" at runtime. 
> When you go through the netbeans release process you need to ask it to merge 
> all these folders. Each file in the folder lists the implementations 
> available; so you will have to merge the files as well (when combining two 
> datastores jars; your META_INF/services/org.geotools.data.DataStore file will 
> need to contain two lines (one for each datastore implementation).
>
> Jody
>
> On 05/08/2010, at 9:05 AM, geo_newbie wrote:
>
>>
>> I am new to GeoTools and have been using it from within Netbeans for the past
>> couple of months.
>> Now that I have made some progress I was trying to create a "stand-alone"
>> jar, but as soon as I try to execute the resulting it I get the following
>> error:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/jdesktop/layout/GroupLayout$Group
>> Caused by: java.lang.ClassNotFoundException:
>> org.jdesktop.layout.GroupLayout$Group
>>       at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>       at java.security.AccessController.doPrivileged(Native Method)
>>       at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>>       at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>> Could not find the main class: edu.unt.cerl.pod.gui.MainFrame. Program will
>> exit.
>>
>>> From within Netbeans everythign runs fine.
>> --
>> View this message in context: 
>> http://osgeo-org.1803224.n2.nabble.com/Packaging-GeoTools-Projects-tp5374744p5374744.html
>> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>> Be part of this innovative community and reach millions of netbook users
>> worldwide. Take advantage of special opportunities to increase revenue and
>> speed time-to-market. Join now, and jumpstart your future.
>> http://p.sf.net/sfu/intel-atom-d2d
>> _______________________________________________
>> Geotools-gt2-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to