problem while running client program

hiI got an error while i am running my client program.error is java.lang.NoClassDefFoundError: javax/naming/Contextsuggest me with some idea pls
[179 byte] By [buddin] at [2007-9-26 2:51:51]
# 1

Hi,

This type of error

java.lang.NoClassDefFoundError: javax/naming/Context

will occur when the client program could not able to locate lib/j2EE.jar file.

So set the classpath correctly and make sure that you have correctly defined the JAVA_HOME environment variable in .bat script.

Hope this will help you.

Regards,

Anil.

Technical Support Engineer.

ramanil_indts at 2007-6-29 10:39:25 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
You might also need to add container specific classes to your classpath, e.g. one of my projects uses IBM WebSphere and we need to add IBM specific classes to get InitialContext classes etc. The documentation that came with your container might contain some help.
adam.tacy at 2007-6-29 10:39:25 > top of Java-index,Other Topics,Patterns & OO Design...
# 3
The program could not locate a class it needed in the lib/j2ee.jar file. Make sure that you correctly defined the J2EE_HOME environment variable in the testClient.sh (UNIX) or testClient.bat (Windows) script.
cop4587 at 2007-6-29 10:39:25 > top of Java-index,Other Topics,Patterns & OO Design...