线程"main"中的异常java.lang.NoClassDefFoundError:SOAPClient4XG [英] Exception in thread "main" java.lang.NoClassDefFoundError: SOAPClient4XG

查看:114
本文介绍了线程"main"中的异常java.lang.NoClassDefFoundError:SOAPClient4XG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
当我编译soapclient时,它已正确编译.我的soapclient4xg在c:\ example中.
我的路径变量也设置为c:\ j2sdk142_17 \ bin
从cmd提示符下,我运行"c:\ example> javac SOAPClient4XG.java
但是当我执行c:\ example \> java SOAPClient4XG主机网址"输入xml"时,出现以下错误
线程主"中的异常" java.lang.NoClassDefFoundError:SOAPClient4XG"
知道为什么吗? (我也尝试过使用jdk1.5),但仍然存在相同的错误

预先感谢

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

推荐答案

包的类部分,并且您的类路径设置正确吗?
Is the class part of a package, and is your classpath set correctly?


classpath吗?它只是包括第3方jar文件..即使我的Java代码正在编译.唯一的问题是它没有运行
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


您可以发布一些源代码吗?也许有些东西可以帮助您确定问题所在.
Can you post some of your source code? Maybe there is something there that will help to identify the problem.


这篇关于线程"main"中的异常java.lang.NoClassDefFoundError:SOAPClient4XG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆