Kundan,
Class "RMIInitialContextFactory" is part of the "oc4j.jar" file. Hence, the "oc4j.jar" file has to be on the CLASSPATH for any
java code that uses it.
The "oc4j.jar" file is usually located in the "j2ee/home" subdirectory below the OC4J "home" directory.
Please note that there are differences between the following:
Oracle Application ServerOC4J stand-aloneJDeveloper even though they all contain the "oc4j.jar" file.
Now, which one are you using?
Good Luck,
Avi.