错误:无法找到或加载主类com.test.soapharness.SOAPClient

时间:2016-03-10 10:01:49

标签: java batch-file

我收到了错误

Error: Could not find or load main class class com.test.soapharness.SOAPClient

当我执行run.bat时。下面是我为run.bat编写的代码:

setlocal
set JAVA_HOME="C:\Program Files\Java\jre1.8.0_73"
set CLASSPATH=.;TestHarness.jar;lib\*
set JAVA_OPTS="-Dhttps.protocols=TLSv1.2,TLSv1.1,TLSv1"
set JAVA_OPTS=%JAVA_OPTS% -Djavax.net.ssl.trustStore="./config/ssl-server.truststore" -Djavax.net.ssl.trustStorePassword=Password01

%JAVA_HOME%\bin\java %JAVA_OPTS% -cp %CLASSPATH% com.test.soapharness.SOAPClient
endlocal

有人可以帮忙吗?

0 个答案:

没有答案