File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException

 
Veena Pointi
Ranch Hand
Posts: 442
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class.forName("weblogic.webservice.WebService");

The above statement doesn't throw ClassNotFoundException even when this class "weblogic.webservice.WebService" doesn't exists in weblogic.jar.I am setting weblogic.jar file in the classpath.If I takeout weblogic.jar from classpath it throws the exception.Am I doing something wrong in syntax above?

Thanks
Veena
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the manifest file inside weblogic.jar (in META-INF) directory it specified a Class-path that includes webservices.jar from the same lib directory that weblogic.jar is in. I think that jar, webservices.jar or possibly another jar specified in manifest classpath, should have the class you are talking about in it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic