CDurkin
15 years agoContributor
Problem with command line when testing a JAVA application.
My java applications includes serveral thirdparty JAR's. When I manual run the app I use a command line like below:
java -cp myApp.jar;thirdPartyLib1.jar;thirdPartyLib2.jar myClassName
However in TestComplete I fill in the java dialog box it always fails on the 2nd item in the "Class paths" list.
When I examine the "Command line" of the item in the tests window, it is showing a space instead of semicolon. The space character does not seem to be a valid delimiter for class path items. For example TestCompletes java command line is:
"java.exe" -cp "myApp.jar" "thirdPartyLib1.jar" "thirdPartyLib2.jar" myClassName
Is this a bug, or a configuration issues?
Thanks
java -cp myApp.jar;thirdPartyLib1.jar;thirdPartyLib2.jar myClassName
However in TestComplete I fill in the java dialog box it always fails on the 2nd item in the "Class paths" list.
When I examine the "Command line" of the item in the tests window, it is showing a space instead of semicolon. The space character does not seem to be a valid delimiter for class path items. For example TestCompletes java command line is:
"java.exe" -cp "myApp.jar" "thirdPartyLib1.jar" "thirdPartyLib2.jar" myClassName
Is this a bug, or a configuration issues?
Thanks