uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

33.3.2 Compiling Web Services Implementation Class

Compile the Web Services Implementation Class, by executing the javac command. For details on the javac command, see the JDK documentation.

The following is the execution example of the javac command.

> cd c:\temp\jaxws\works\streaming\server\
> mkdir WEB-INF\classes\
> javac -encoding UTF-8 -cp "%COSMINEXUS_HOME%\jaxws\lib\cjjaxws.jar;%COSMINEXUS_HOME%\CC\client\lib\j2ee-javax.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxb.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxp.jar;%COSMINEXUS_HOME%\jaxp\lib\csmstax.jar;%HNTRLIB2_HOME%\classes\hntrlib2j.jar;%HNTRLIB2_HOME%\classes\hntrlibMj.jar" -d WEB-INF\classes\ -s src src\com\sample\AddNumbers.java src\com\sample\AddNumbersImpl.java src\com\sample\AddNumbersFault.java

The compiled classes are output to the c:\temp\jaxws\works\addressing\server\WEB-INF\classes\com\sample\ directory, if the javac command successfully ends. Executing the cjwsgen command for the compiled Web Services Implementation Classes enables you to check errors in advance. For details on the cjwsgen command, see 14.3 cjwsgen command and for details on error checking, see 10.23 (1) Using the cjwsgen command for checking errors.