a first JNDI programmer looking for help.....plz help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    a first JNDI programmer looking for help.....plz help

    this is my code ... look at carefullyyyyy ...

    import javax.naming.*;
    import java.util.*;

    class JNDITest
    {
    public static void main(String args[]) throws Exception
    {
    Hashtable tab = new Hashtable();
    tab.put("Debasi s","Moumita" );
    tab.put("Shyam" ,"Mamata");
    tab.put("Debabr ata","Sujata") ;
    Context ctx = new InitialContext( tab);
    System.out.prin tln("Debasis: " + ctx.lookup("Shy am"));
    }
    }


    i just write in Oracle Jdeveloper 3.2.3 an try to run this ....

    and i get .... javax.naming.No InitialContextE xception Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.fac tory.initial


    why does it mean???? plz explain .......

    any help is most welcome.....

    thanxxxxx
Working...