Troubleshooting

ClassNotFoundException Was Thrown

I get a ClassNotFoundException when I try to run my JNDI application.

Be sure that you have the jndi.jar and the JAR files required by your JNDI service provider in your system classpath. If you are using a SDK version prior to 1.3, check the JNDI documentation for where these go so that they can be found.

Incompatible Java Platform Versions

I get an exception complaining about missing Java files.

Be sure you are using a version of Java higher than 1.2.2. If possible, you should download and use Java 2 SDK 1.3. You can download it from http://java.sun.com/products/jdk.

NoClassDefFoundError

I get a NoClassDefFoundError when I run my JNDI application.

This is a runtime error that happens because ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.