开发一个简单的webService .类似hellWorld的。。
将.jws放到axis 目录下,查看wsdl文件时。报下面错误
Fault - ; nested exception is:
java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')
faultActor: classpath中已经存在tools.jar 了。。
我的环境变量时
JAVA_HOME D:\Program Files\Java\jdk1.6.0_20CLASSPATH .;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar
Path %JAVA_HOME%\bin
上面的环境可以正常在cmd下编译运行java文件。。
将.jws放到axis 目录下,查看wsdl文件时。报下面错误
Fault - ; nested exception is:
java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')
faultActor: classpath中已经存在tools.jar 了。。
我的环境变量时
JAVA_HOME D:\Program Files\Java\jdk1.6.0_20CLASSPATH .;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar
Path %JAVA_HOME%\bin
上面的环境可以正常在cmd下编译运行java文件。。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货