Saturday, December 29, 2012

How to enable Tomcat when JRE is available while JDK is not available

How to enable Tomcat when JRE is available while JDK is not available
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:

  1. Eclipse can run without the JDK since the JDT itself contains a java compiler.
  2. 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