On 03.02.2014, at 22:19, Singh, Ragini <rsi...@central.uh.edu> wrote:

> Hello,
> 
> I upgraded Java 1.6.45 to Java 1.7.51 using java-1.7.0-oracle.x86_64 : Oracle 
> Java Runtime Environment on RHEL 5. Used the "alternatives" command to make 
> the Java 7 as Java version.
> Now in my custom startup script if I define JAVA_HOME as 
> JAVA_HOME="/usr/lib/jvm/java" tomcat 7 recognizes the java as 1.6 ( the 
> previous version) and gives this message
> "INFO: The APR based Apache Tomcat Native library which allows optimal 
> performance in production environments was not found on the 
> java.library.path: /usr/lib/jvm/java-1.6.0-sun-1.6.0.45
> .x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-sun-1.6.0.45.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-sun-1.6.0.45.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib
> 64:/lib64:/lib:/usr/lib"
> 
> I modified the JAVA_HOME to JAVA_HOME="/usr/lib/jvm/jre-1.7.0-oracle.x86_64". 
> Now tomcat starts and gives the message as
> "INFO: The APR based Apache Tomcat Native library which allows optimal 
> performance in production environments was not found on the 
> java.library.path: 
> /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib"
> 
> I believe it is not recognizing the correct Java version which is 1.7. Am I 
> missing anything ?

AFAICT Java 7 has removed $JAVA_HOME/jre/lib/<architecture>[/<vmtype] and 
$JAVA_HOME/lib/<architecture> from the default java.library.path - this is 
independent of Tomcat. So it is very likely that Tomcat *is* using the desired 
Java now. Others have already written how to verify for sure.

> Thank you,
> -Ragini

Rainer Frey

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to