Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: James Rivera   on Jul 14 In Java Category.

  
Question Answered By: Jeanette Greene   on Jul 14

the exception  is clear
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory

it complains that class  is not loaded, you have to add the appropriate jar  file

apart from that, while setting your properties  at line: prop.setProperty("java.naming.provider.url","localhost:");
you must remove the : (colon) from the value

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Some body tells me where did i do wrong? Or get search suggestion and latest updates.


Tagged: