Hi.
Am Using the Gtopo30 Raster Data.
For this am using the gt2-gtopo30.jar bundled with the 2.0.0
I am using all other Jar files from 2.1.RC1 version.
here is the Code I am trying to run in the Main method.
public static void main(String[] args)
{
try
{
GTopo30DataSourceFactory dFact = new GTopo30DataSourceFactory();
HashMap has = new HashMap();
has.put("url", "C:/Raster Data/BD_10800/BD_10800.tif");
System.out.println(dFact.canProcess(has));
}
catch(Exception e )
{
e.printStackTrace();
}
}
this throws me an exception :
java.lang.NoClassDefFoundError: org/geotools/data/DataSourceFactorySpi
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Exception in thread "main"
I dont udnerstand why a Class Not Found Exception as I Have all the Classes needed.
The gt2-main.jar contains this FactorySpi Class.
If Anyone Knows Why this is Happening Please Let me know.
Meanwhile Please let me know if you guys think this to be a bug and needs to be reported.Will do the Necessary.
Thanks & Regards,
Satya.
- [Geotools-gt2-users] (no subject) Satyanarayana Murty Pindiproli
- Re: [Geotools-gt2-users] (no subject) Martin Desruisseaux
- [Geotools-gt2-users] (no subject) vijethashenoy
- Re: [Geotools-gt2-users] (no subje... Jody Garnett
- [Geotools-gt2-users] (no subject) Satyanarayana Murty Pindiproli
- Re: [Geotools-gt2-users] (no subje... [EMAIL PROTECTED]
- [Geotools-gt2-users] (no subject) D.J. Zhao
- [Geotools-gt2-users] (no subject) Govardhan
