Exception in thread "main" java.lang.NoClassDefFoundError:

Discussions

EJB programming & troubleshooting: Exception in thread "main" java.lang.NoClassDefFoundError:

  1. I know,"Exception in thread "main" java.lang.NoClassDefFoundError" will occur when my "main" don't identify the class. Actally in my CMB Client program,
    everything seems to be alright,including CLASSPATH but it throws the above exceptiong...If anybody knows, what could be the other reasons for the above error please let me know
    Thanks
  2. this is definetly a classpath problem .
    Neeraj...
  3. hi,
       depends on which OS u are using. if windows, there won't be any problem. In solaris, you have to export the classpath you have set. so just say export CLASSPATH.

    bye
    muthu