Building mod_jk 1.2.18
Building a Web Server, for Windows
Requirements
- Microsoft VC++
[we will use Visual Studio 98 / VC++ 6.0]
[Visual Studio .NET will also work with same instructions]
- Java 1.5 JDK (SDK)
- Apache 2.0 [apr libs]
- Notes:
- When using the command-line (command-shell) with VC++, always set the Build Environment and update the System PATH to reflect the tools used in the build --> Guide: Working with the Command Shell
Download
Our Configuration
- J2SE SDK path : C:\Java\jdk1.5.0_07
- Apache path : C:\www\Apache2
Set required Environment Variables
- Set Environmental Variables : Set variable under Start » Settings » Control Panel » System » Advanced » Environment Variables » System variables » New...
- JAVA_HOME=C:\Java\jdk1.5.0_07
- APACHE2_HOME=C:\www\Apache2
Build mod_jk2
Note that the build must take place from the command line, loading mod_jk.dsp will not work in VS98 nor VS.NET
- Unpack file tomcat-connectors-1.2.18-src.tar.gz
- Enter directory ...\tomcat-connectors-1.2.18-src\native\apache-2.0
> nmake /f "Makefile.vc" CFG="apache - Win32 Release"
Configuration and Setup
- Enter directory ...\tomcat-connectors-1.2.18-src\native\apache-2.0\Release, copy files...
- mod_jk.so to directory C:\www\Apache2\modules
- mod_jk.lib to to directory C:\www\Apache2\lib