If you want to use CKEditor on your Java page, check the official CKEditor for Java release. You can download it from the CKEditor download site and the documentation along with installation instructions is available at http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Java/Integration.
After you download the installation package, do not forget to check the samples that are located in the _samples
folder and can be run as a standalone application without much work on your side.