Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [netcdf-java] Jar dependencies for netcdf-java 4.1

Thanks Nils and Christian. We'll get that updated.

Ethan

On 6/10/2010 4:47 PM, Christian Ward-Garrison wrote:
> Hello all,
> 
> I'd like to add that the latest development version, 4.2.20100527.2031,
> introduces another undocumented dependency: Berkely DB, Java Edition.
> I'm not exactly sure what NJ uses it for, but NcML aggregation fails
> without it.
> 
> For Maven projects that use the latest unbundled NJ, add the following
> elements to your pom.xml:
> 
> <repositories>
> <!-- For com.sleepycat.je -->
> <repository>
> <id>download.oracle.com/maven</id>
> <url>http://download.oracle.com/maven</url>
> </repository>
> </repositories>
>     ...
> </dependencies>
> <dependency>
> <groupId>com.sleepycat</groupId>
> <artifactId>je</artifactId>
> <version>4.0.71</version>
> </dependency>
> </dependencies>
> 
> Regards,
> Christian Ward-Garrison
> 
> 
> On 6/10/2010 1:29 AM, Nils Hoffmann wrote:
>> Hi John, hi list!
>> I'm using the unbundled version of netcdf-java 4.1 to read files in
>> netcdf format (ANDI-MS, ANDI-CHROM). However, I found that the jar
>> dependencies noted on this
>> page
>> http://www.unidata.ucar.edu/software/netcdf-java/reference/JarDependencies.html
>>
>> are not really up to date.
>> I had to add unidatacommon.jar to my classpath to avoid the following
>> exception:
>>
>> java.lang.NoClassDefFoundError: ucar/unidata/geoloc/ProjectionImpl
>>     at ucar.nc2.iosp.nids.Nidsiosp.isValidFile(Nidsiosp.java:81)
>>     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:742)
>>     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:403)
>>     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:373)
>>     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:360)
>>     at ucar.nc2.NetcdfFile.open(NetcdfFile.java:348)
>> ... (my call stack skipped) ...
>> Caused by: java.lang.ClassNotFoundException:
>> ucar.unidata.geoloc.ProjectionImpl
>>     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>     ... 15 more
>>
>> As far as I understand it, ProjectionImpl should only be required by
>> a NetcdfDataset implementation?
>>
>> Sincerely,
>> Nils
>>
>>    
> 
> _______________________________________________
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: