Thanks s.grinovero. With your suggestions (I created an object straight from the jar without a problem; so it's seeing the jars), you helped me think of a better idea ... with results to make me even more perplexed.
I HAVE to be the only person with this problem. The follow code is the sample code from
http://www.slf4j.org/manual.html. This produces the same exact same error I am experiencing with my hibernate code. Both jars accounted for. Not sure if this is part of my problem but I'm using:
Eclipse Galileo
Java 1.6
slf4j 1.6.1
package com.rain.slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Slf4jExample {
public static void main(String[] args) {
Logger logger = LoggerFactory.getLogger(Slf4jExample.class);
logger.info("Hello World");
}
}
ERROR:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)
at com.rain.slf4j.Slf4jExample.main(Slf4jExample.java:13)
Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
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 sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 7 more