• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!