NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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
archives: