tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Clark <>
Subject Re: Tomcat Native library for Windows
Date Tue, 02 Sep 2008 23:54:10 GMT
Hmmm...on Windows, what is the difference between java.library.path and the Windows environmental
variable PATH?

I am not sure I understand your suggestion. I have my Java Classpath set to this, which contains
my bootstrap.jar. 
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstrap.jar

Should I just set, via JAVA_OPTS, my java.library.path to the same directory, since that's
where I put my tcnative-1.dll file?
-Djava.library.path=C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin

I don't want to break anything. Setting the java.library.path won't make Tomcat stop looking
at other libraries in other locations (like the built-in /lib directory) will it?


----- Original Message ----
From: Martin Gainty <>
To: Tomcat Users List <>
Sent: Tuesday, September 2, 2008 5:59:10 PM
Subject: RE: Tomcat Native library for Windows

AprLifecycleListener reads java.library.path
so either start Java with -Djava.library.path
java -Djava.library.path=LocationOfBinary bootstrap.jar
(easier to place -Djava.library.path into JAVA_OPTS)
set LD_LIBRARY_PATH=LocationOfBinary

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 

> Date: Tue, 2 Sep 2008 23:38:45 +0100
> From:
> To:
> Subject: Re: Tomcat Native library for Windows
> Brian Clark wrote:
> > Hello,
> > 
> > I am getting the following error when starting up Tomcat 6.0.16 on Windows 2003:
> > 
> > "Sep 2, 2008 4:18:13 PM org.apache.catalina.core.AprLifecycleListener init
> > INFO: The APR based Apache Tomcat
> > Native library which allows optimal performance in production
> > environments was not found on the java.library.path: C:\Program
> > Files\Apache Software Foundation\Tomcat
> > 6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Perl\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS"
> > 
> > Here's
> > the catch, I do have the library installed in the bin directory (the
> > very same bin referenced in the PATH above). I downloaded version from and tried to just "drop it in" the bin
directory. I don't know why it
> > doesn't work. I also tried putting it in my windows\system32 directory,
> > but with the same result. 
> > 
> > I've done a lot of research on the
> > 'net, and found lots of other people that have this problem. However,
> > most seem to have the problem resolved by putting the library in the
> > right place, such as described in this earlier mailing list posting:
> >
> > 
> > Any ideas on what is going on here?
> Which file did you download. What is its current name?
> Mark
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Get ideas on sharing photos from people like you.  Find new ways to share.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message