1. Use the Document class in the java2word package to create a new Document. The error message is: you must use Document doc = new Docuemnt () in the project. The file cannot be created. The initialization exception is java. lang. exception: An error occurred while initializing the class library. Check whether the installer has been installed on this machine. Solution: 1. Unzip the. rar compressed file first, follow the steps below to continue; 2. Install the. exe file first (this file is included in the file), and put java2word. copy jar to the lib directory; 3 ). after installation, if the system is 32-bit, there is a jacob in C: \ Windows \ System32. dll; if the system is 64-bit, there is a jacob in C: \ Windows \ SysWOW64. dll. 4 ). find jacob. dll, copy it to the Directory D: \ apache-Tomcat-7.0.32 \ bin, and copy it to the Directory D: \ Programes \ Java \ jdk1.6.0 _ 29 \ bin; 5 ). restart the project tomcat server. 6 ). make sure that you have installed the complete office