O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using JNDI

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required