Previous | Next | Trail Map | Getting Started | Common Problems (and Their Solutions)

Compilation Problems

Class or Package Not Found

Problem: You get Package javax.naming not found or similar errors complaining about missing classes.

Cause: You have not included the JNDI classes (jndi.jar) in your classpath when you compile your program.

Solution: The way you include the JNDI classes depends on your development environment. Using the javac compiler, you can either add jndi.jar to your CLASSPATH environment variable or add it to the -classpath option in your javac command line.

Java Platform Versions

Problem: You get compilation failures complaining about missing java.* packages or classes.

Cause: You are using an old version of the Java platform.

Solution: You need to use Java 1.1.2 or higher. See http://java.sun.com/products/jdk/1.1/.


Previous | Next | Trail Map | Getting Started | Common Problems (and Their Solutions)