Ok
hatte die Parameter in der Batch.cmd
Wenn ich nun Batch.cmd manuell mit Parametern aufrufe gehts:
Der Aufruf meines C-Programms bei entfernten " " in der Batch.cmd liefert:
![Confused :confused: :confused:](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f615.png)
![Confused :confused: :confused:](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f615.png)
Im obigen manuellen Teil hatte ich die " " ebenfalls entfernt. Also
Manuell gehts - über c-Programm wirft er mir die NoClassDefFoundError... wobei der classpath ja gesetzt ist...?
Gruß und vielen Dank für deine Mühe![Smile :-) :-)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)
![Big grin :D :D](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f600.png)
Wenn ich nun Batch.cmd manuell mit Parametern aufrufe gehts:
Code:
D:\apps\Java\BPEL_Client>batch.cmd s infodba s infodba
D:\apps\Java\BPEL_Client>CALL D:\apps\java\BPEL_Client\classpath.bat
D:\apps\Java\BPEL_Client>set JAVA_HOME=D:\apps\java\jdk1.5.0_16
D:\apps\Java\BPEL_Client>set PATH=D:\apps\java\jdk1.5.0_16\bin
D:\apps\Java\BPEL_Client>set CLASSPATH=D:\apps\java\BPEL_Client\bin;lib/activation.jar;lib/axis.jar;lib/axis-ant.jar;lib
/commons-discovery-0.2.jar;lib/commons-logging-1.0.4.jar;lib/jaxrpc.jar;lib/log4j-1.2.8.jar;lib/mail.jar;lib/saaj.jar;li
b/wsdl4j-1.5.1.jar;lib/jaxen-1.1-beta-8-no-dom.jar;lib/xerxcesImpl.jar;lib/xml-apis.jar;
D:\apps\Java\BPEL_Client>SET attribute=s infodba s infodba
D:\apps\Java\BPEL_Client>java meinpackage.BPELClient http://destroffm01:8080/active-bpel/services/LoginService "" echo s
infodba s infodba
wsEndpoint : http://destroffm01:8080/active-bpel/services/LoginService
wsNamespace :
wsMethod : echo
type, value : s, infodba
type, value : s, infodba
Return : class java.lang.String
Login successfulinfodbainfodba
D:\apps\Java\BPEL_Client>
Der Aufruf meines C-Programms bei entfernten " " in der Batch.cmd liefert:
Code:
D:\DEVC\Dev-Cpp\Workspace\SystemCall2>SystemCall2.exe
D:\DEVC\Dev-Cpp\Workspace\SystemCall2>CALL D:\apps\java\BPEL_Client\classpath.bat
D:\DEVC\Dev-Cpp\Workspace\SystemCall2>set JAVA_HOME=D:\apps\java\jdk1.5.0_16
D:\DEVC\Dev-Cpp\Workspace\SystemCall2>set PATH=D:\apps\java\jdk1.5.0_16\bin
D:\DEVC\Dev-Cpp\Workspace\SystemCall2>set CLASSPATH=D:\apps\java\BPEL_Client\bin;lib/activation.jar;lib/axis.jar;lib/axi
s-ant.jar;lib/commons-discovery-0.2.jar;lib/commons-logging-1.0.4.jar;lib/jaxrpc.jar;lib/log4j-1.2.8.jar;lib/mail.jar;li
b/saaj.jar;lib/wsdl4j-1.5.1.jar;lib/jaxen-1.1-beta-8-no-dom.jar;lib/xerxcesImpl.jar;lib/xml-apis.jar;
D:\DEVC\Dev-Cpp\Workspace\SystemCall2>SET attribute=s infodba s infodba
D:\DEVC\Dev-Cpp\Workspace\SystemCall2>java meinpackage.BPELClient http://destroffm01:8080/active-bpel/services/LoginServ
ice "" echo s infodba s infodba
wsEndpoint : http://destroffm01:8080/active-bpel/services/LoginService
wsNamespace :
wsMethod : echo
type, value : s, infodba
type, value : s, infodba
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/Service
at meinpackage.BPELClient.main(BPELClient.java:44)
Press any key to continue . . .
![Confused :confused: :confused:](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f615.png)
![Confused :confused: :confused:](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f615.png)
Im obigen manuellen Teil hatte ich die " " ebenfalls entfernt. Also
Code:
java meinpackage.BPELClient http://destroffm01:8080/active-bpel/services/LoginService "" echo %attribute%
Gruß und vielen Dank für deine Mühe
![Smile :-) :-)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png)