This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception in thread "main" java.lang.NoClassDefFoundError: SOAPClient4XG" Watch "Exception in thread "main" java.lang.NoClassDefFoundError: SOAPClient4XG" New topic
Author

Exception in thread "main" java.lang.NoClassDefFoundError: SOAPClient4XG

jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
Hi all,

When I am compiling soapclient, it's getting compiled properly. my soapclient4xg is in c:\example.
my path variable is also set to c:\j2sdk142_17\bin

from cmd prompt, I run " c:\example>javac SOAPClient4XG.java

but when I do c:\example\>java SOAPClient4XG "host url" "input xml" the following error appears

"Exception in thread "main" java.lang.NoClassDefFoundError: SOAPClient4XG"

any idea why ? ( I also tried with jdk1.5 ) but the same error remains

thanks in advance
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

jazy smith wrote:Hi all,

When I am compiling soapclient, it's getting compiled properly. my soapclient4xg is in c:\example.
my path variable is also set to c:\j2sdk142_17\bin

from cmd prompt, I run " c:\example>javac SOAPClient4XG.java

but when I do c:\example\>java SOAPClient4XG "host url" "input xml" the following error appears

"Exception in thread "main" java.lang.NoClassDefFoundError: SOAPClient4XG"

any idea why ? ( I also tried with jdk1.5 ) but the same error remains

thanks in advance


one of these links should help:
http://www.codeproject.com/answers/65209/Exception-in-thread-main-java-lang-NoClassDefFound.aspx
http://www.experts-exchange.com/Programming/Languages/.NET/Web_Services/Q_25350390.html


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError: SOAPClient4XG
 
Similar Threads
java.lang.NoClassDefFoundError: jdk1/5/0_04
running java program out of workspace
Package/sub-package problems...
using command to run swing application ?
Java Error: java.lang.ArrayIndexOutOfBoundsException: 0 For Simple Program