Tomcat needs javac.exe and jdb.exe to compile/debug the jsp files. So we need firstly copy the javac.exe and jdb.exe to %JRE_HOME%\bin directory. At the same time, javac.exe needs tools.jar to run. So we also need copy tools.jar to %JRE_HOME%\lib directory. Finally, we set the JAVA_HOME to the jre home directory. Now the Tomcat is available.
Note:
- Eclipse can run without the JDK since the JDT itself contains a java compiler.
- The javac.exe (25k), jdb.exe (25k) and tools.jar(11.7M for JDK6) needs to be sent to the destination computer. In fact, I install the JDK at home and sent it to gmail then I can get it from the company.
No comments:
Post a Comment