error when executing java -jar servicoweb.jar Caused by: java.lang.ClassNotFoundExcep

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hadesgrid
    New Member
    • Jan 2011
    • 2

    #1

    error when executing java -jar servicoweb.jar Caused by: java.lang.ClassNotFoundExcep

    Hello everyone

    I need your help please

    I am trying to execute my servicoweb.jar but it says that i need the following class
    Exception in thread "main" java.lang.NoCla ssDefFoundError : javax/xml/rpc/Service

    this is in the jaxrpc.jar how can i say to my servicoweb.jar that what it needs it is in jaxrpc.jar

    i have try to add the jar in a dir that is in the Path system variable

    any help will be aprecited I am a bit desperate.
    thank you in advance
    Ana
  • hadesgrid
    New Member
    • Jan 2011
    • 2

    #2
    I have found the answer.
    what it have to be done is to add in the MANIFEST.mf of the jar that is been executed the following
    Class-Path: jaxrpc.jar
    and if you need anothr you just add it

    Comment

    Working...