Women in Technology

Hear us Roar



Article:
  Using SOAP with Tomcat
Subject:   Please Help Me!!
Date:   2003-11-17 21:23:13
From:   mizzara
I have followed the steps described in the paper. I created and compiled the client. When I tried running it, I got the message 'Exception in thread "main" java.lang.NoClassDefFoundError: onjava/CalcClient'.


Can anyone help?


Thank you.


Full Threads Newest First

Showing messages 1 through 4 of 4.

  • Please Help Me!!
    2004-01-05 18:55:35  anonymous2 [View]

    I had the exact same problem, and it was driving me mad. What I was doing wrong sounds really newbie but here goes....
    I did not understand the packages system properly, so when I compiled CalcClient, I tried to run it from the same directory ie
    mydir> javac CalcClient.java
    mydir> java onjava.CalcClient 98 90
    Exception in thread "main" java.lang.NoClassDefFoundError: onjava/CalcClient
    What I needed to do was create a directory called onjava and have the class file in there thus:

    mydir\onjava> javac CalcClient.java
    mydir> java onjava.CalcClient 98 90
    8

    See what I mean?
    Hope it helps
    Rob

  • Please Help Me!!
    2004-11-05 02:23:12  mwansa [View]


    I have followed the steps described in the paper. I created and compiled the client. When I tried to running it, I got the message 'Exception in thread "main" java.lang.NoClassDefFoundError: onjava/CalcClient'. how can I resolve this problem, please help me!!!!!


  • Please Help Me!!
    2006-02-11 18:05:36  rhododendron [View]

    get the package declaration out of CalcClient.java and compile and run from the local folder you normally use to compile and run java programs
  • Please Help Me!!
    2006-02-17 08:18:42  karthindia [View]

    add "."(current directory) to your classpath.

    exmple: C:\oracle\ora81\jdbc\lib\classes12.zip;C:\Apache\Tomcat\common\lib\servlet-api.jar;C:\Apache\Tomcat\common\lib\jsp-api.jar;C:\Apache\Soap\lib\mail.jar;C:\Apache\Soap\lib\soap.jar;C:\Apache\Soap\lib\activation.jar;.
    notice the dot at the end..