JNDI is a standard component of JDK 1.3 and is, therefore, also part of J2EE 1.3. JNDI is also included in J2EE 1.2 and is available as a standard Java extension for JDK 1.2 and earlier.
While developing code, the program's CLASSPATH must include the location of the JNDI class libraries. As long as the JAVA_HOME environment variable has been set up, the JNDI classes will be available to the Java compiler.
Running a JNDI-aware program requires a JNDI service to be running and the classes for that service to be available to the program. Typically, this requires the CLASSPATH to include one or more JAR files provided by the JNDI provider or a J2EE server vendor. For implementation-specific details, see the vendor's documentation.
By default, ...