Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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


Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1500 times.
Similar Threads
using command to run swing application ?
Package/sub-package problems...
running java program out of workspace
Java Error: java.lang.ArrayIndexOutOfBoundsException: 0 For Simple Program
java.lang.NoClassDefFoundError: jdk1/5/0_04
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:52:23.