tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Tomcat native / APR for windows
Date Tue, 22 Jan 2008 11:05:00 GMT

I am trying to build tomcat native for windows and have not been very 
successful on this.. 

Below are the steps that I have take to try and get this done

·       Extracted Tomcat  Native from the source in the directory 
structure E:\tomcat55-build\tomcat-native-1.1.10-win32-src\jni\native

·       Extracted apr from the source in the directory structure for the 
libtcnative.mak file to use it. It should not be pre 

·       Extracted OpenSSL libraries in the directory structure 

·       Set the JAVA_HOME to point to appropriate jdk. 

·       Using Visual VC ++ 6, I exported the libtcnative.mak file from the 
libtcnative.dsw project. ( libtcnatitve.mak file is not included in the 
tomcat native source and it has to be extracted using  using export 
makefile option which is available VC ++ 6. It even extracts tcnative.mak 
and libapr.mak).

·       Add user32.lib  next to kernel32.lib in the libtcnative.mak. The 
.mak file links with various libraries, including kernel32.lib and 
advapi32.lib, but it does not link with user32.lib. 

·       When we run nmake on libtcnative.mak it even compiles the apr 
libraries and uses them and creates libtcnative.dll.

·       Running the following command:   nmake –f  libtcnative.mak will 
compile the tomcat-native libraries.

 But when I run nmake –f  libtcnative.mak I get the below error... Lost 
form here on .. 

Version Details 

-f libtcnative.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

No configuration specified. Defaulting to libtcnative - Win32 Debug.
        "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /    
         /F ".\libapr.mak" CFG="libapr - Win32 Debug"

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd "..\native"
        cl.exe /nologo /MDd /W4 /GX /Zi /Od /I "./include" /I 
"../apr/include" /I "../apr/include/arch/win32" /I "/include" /I 
"/include/win32" /I "../openssl/in
/Fd".\Debug\libtcnative_src" /FD /c .\src\address.c
cl : Command line warning D9035 : option 'GX' has been deprecated and will 
be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'

: fatal error C1083: Cannot open include file: 'jni.h': No such f
ile or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
8\VC\BIN\cl.exe"' : return code '0x2'

Could you help me out here and let me know what I have done wrong ..

Do you have a step by step approach on how to get apr / tomcat native 
build on windows. The  does not 
give you step by step documented approach on how to get things going.

In Integrating the Library

 We should tell ya'll 'bout this, no?  ( Not a great help ha .. ) Could 
you please have this information documented on the website , that would be 
a great help .. 

Mark Anthony

Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are receiving the offering
materials attached below related to your interest in hedge funds or
private equity, this communication may be intended as an offer or
solicitation for the purchase or sale of such fund(s).  All market
prices, data and other information are not warranted as to
completeness or accuracy and are subject to change without notice.
Any comments or statements made herein do not necessarily reflect
those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to for
disclosures relating to UK legal entities.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message