JNDI classes needed!!
- by artaxerxe
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!