tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: JNA class path with tomcat
Date Tue, 12 Jul 2011 18:26:55 GMT
Bill Miller wrote:
> The problem is undoubtedly your .dll or .so is not in the correct directory. 

That's probably true.

Normally you need to
> place those files in /tomcat but that assumes that /tomcat is your current directory
when you
> startup. Essentially you need to ensure that you are starting tomcat from the base directory
that
> also contains your native code, then everything will work fine.
> 

But that is probably hogwash.

The JVM which runs Tomcat has a series of paths where it will look for classes and 
libraries; to which Tomcat itself adds its own series of paths; to which the webapp 
classloader adds its own.  The library should be in one of those, depending what its 
"scope" is.

See here for the real explanation: 
http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html



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


Mime
View raw message