Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 12-Mar-10 12:38pm
v3

Is the class part of a package, and is your classpath set correctly?
 
Share this answer
 
classpath ? it is only to include 3rd party jar files .. and even though my java code is getting compiled. only problem is it's not getting run
 
Share this answer
 
Can you post some of your source code? Maybe there is something there that will help to identify the problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900