I have written a simple JNDI program in IBM RAD.While running its showing "Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory " Exception. After that I have downloaded and included fscontext.jar in the libraries. But it`s showing another exception...
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jndi/toolkit/chars/CharacterEncoder
1) Are your jars on your classpath ? 2) then double check (unzip) that class in is the jars (it's meant to be).
Now possibly what is the problem ..
3) Check the class file (java) versions of the related classes eg if old java tries to link to new class files it'll say can't find the file when what it means is can't find a compatiable version so you need to check your Java version and the version of the class files in the two jars all are appropriate to work together ...
easiest way make sure the jars come from the same place and upgrade Java to the latest.
4) Failing that check they haven't done anything 'unique' in the MANIFEST.INF with regards to class paths etc etc
"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5