JNDI classes needed!!

Posted by artaxerxe on Stack Overflow See other posts from Stack Overflow or by artaxerxe
Published on 2010-04-08T12:11:36Z Indexed on 2010/04/08 12:13 UTC
Read the original article Hit count: 350

Filed under:

I have instaled in my computer a JDK version 1.6.

(I'm learning about JNDI)

When i run this:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
try {

    // Create the initial context
    Context ctx = new InitialContext(env);
       //...

i get an error :

Caused by: java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory

Caused by: java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory

Does it means that i need some classes to include in my classpath? I read in the tutorial that versions of jdk recently than v 3 doesn't need to download other classes. Thank advance!

© Stack Overflow or respective owner

Related posts about jndi