uCosminexus Application Server, Web Service Development Guide

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

12.3.2 Compiling Java sources

You use the javac command to compile the created Java sources. An example of compiling is as follows:

> cd c:\temp\jaxrs\works\tutorial\server\
> javac -encoding UTF-8 -cp "%COSMINEXUS_HOME%\jaxws\lib\cjjaxws.jar;%COSMINEXUS_HOME%\jaxrs\lib\cjjaxrs.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxb.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxp.jar;%COSMINEXUS_HOME%\jaxp\lib\csmstax.jar;.\classes" -d WEB-INF\classes\ src\com\sample\resources\Resource.java src\com\sample\resources\SubResource.java src\com\sample\providers\RuntimeExceptionMapper.java src\com\sample\resources\CustomType.java

When the javac command ends successfully, a class file (*.class) is generated in the subdirectory corresponding to the package name in the c:\temp\jaxrs\works\tutorial\server\WEB-INF\classes\ directory.

For details on the javac command, see the JDK documentation.