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.
The simplest thing to do is to add this to your program: import java.util.logging.*;Logger logger = Logger.getLogger("ucar"); logger.setLevel(Level.SEVERE);
that should turn off all messages except errors from all packages under ucar. you might also want to investigate using logging for your own program. We actually use a logging facade called slf4j, so people can use various loggers with nj22. jdk1.4 is the default logging package (log4j is another, recommended for server applications). Robert B. Schmunk wrote:
John, To be honest, I have no idea if I have logging enabled or not. It's certainly not something I have deliberately specified, and in fact I just had to Google on "jdk1.4 logging" to find out what you were referring to. If jdk1.4 logging is something that needs to be deliberately invoked, then I would assume it is _not_ on, but my cluelessness on the topic is such that I could be wrong. rbs On Jun 22, 2006, at 20:44, John Caron wrote:now that i look at this closer, i see that the message is going through our logging facade. are you using jdk1.4 logging? If so, you can turn off the message there.Robert B. Schmunk wrote:John, I switched my Panoply app over to use the new NJ-2.2.16 last night and since then it has been firing off a warning message whenever it opens a dataset. Specifically, I am getting: Jun 8, 2006 9:03:18 PM ucar.nc2.NetcdfFile <clinit>WARNING: Cant load class: java.lang.ClassNotFoundException: ucar.bufr.BufrInputIn order to keep the application download time small, I have avoided linking extra libraries into Panoply unless they are necessary, to the functionality. I can make the above error go away by simply linking in the "bufr.jar" file which has appeared in the latest NJ-2.2 distro, but I'm wondering what is in that jar that I might actually need? I haven't yet encountered any actual error that seems to arise from not including it, so for the moment the warning is only irritating. rbs -- Robert B. Schmunk, rschmunk@xxxxxxxxxxxxxNASA Goddard Institute for Space Studies, 2880 Broadway, New York, NY 10025-- Robert B. Schmunk, rschmunk@xxxxxxxxxxxxxNASA Goddard Institute for Space Studies, 2880 Broadway, New York, NY 10025
netcdf-java
archives: