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.
Hi Lak: The next version of netcdf-java (4.0.35) will remove nlog4j.lib, instead using unbundled slf4j, with option for log4j. It should be available later today or tommorrow. For more details on logging, see: http://www.unidata.ucar.edu/software/netcdf-java/reference/JarDependencies.html Thanks for reporting this problem. Valliappa Lakshmanan wrote: > I tried toolsUI-4.0.jar because I was having problems getting earlier > versions of the netcdf API to read Grib2 files. > > However, the toolsUI version seems to have a logging problem, and when I > run my code (which uses log4j via Apache Commons), I get the following > exception: > > [java] Exception in thread "main" > java.lang.IncompatibleClassChangeError: Class org.apache.log4j.Logger > does not implement the requested interface org.slf4j.Logger > [java] at ucar.nc2.NetcdfFile.open(NetcdfFile.java:635) > [java] at ucar.nc2.NetcdfFile.open(NetcdfFile.java:335) > [java] at ucar.nc2.NetcdfFile.open(NetcdfFile.java:305) > [java] at ucar.nc2.NetcdfFile.open(NetcdfFile.java:292) > [java] at ucar.nc2.NetcdfFile.open(NetcdfFile.java:280) > > ( I do have slf4j-api-1.1.0.jar and slf4j-log4j12-1.1.0.jar in my > classpath ) > > Searching on the internet for the error indicates (see: > http://www.nabble.com/Trying-to-use-log4j-over-slf4j-td20249172.html ) > that it's because toolsUI.jar bundles the contents of nlog4.jar which is > obsolete. > > I can avoid the error by using netcdf-4.0.jar (which is what I did), but > thought I'd report the problem. > > Lak > > > > ------------------------------------------------------------------------ > > _______________________________________________ > netcdfgroup mailing list > netcdfgroup@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/
netcdf-java
archives: