tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: Tomcat JNI Netbeans
Date Thu, 13 Sep 2007 03:06:36 GMT
> From: soulboy [] 
> Subject: RE: Tomcat JNI Netbeans
> Well even if Tomcat has no "specific relationship" to JNI it 
> still has some kind of relationship.

No more or less than any other Java program, so simply look in the
standard JNI documentation.

> One thing I noticed is the Java documenation states that 
> the JNI Java wrapper .jar  should be in the classpath and
> then it should work

Please provide a reference to the above, since what you have stated
makes no real sense.  The locations of Java classes and native libraries
are completely independent.  Note that there is no "the" classpath in
any Java environment; at least three exist in all Java program
executions, more in complex app servers.

> Incidently I did the same thing in C# .net and it was 
> extremely easy to find 

Since C# .NET is analogous to Java, not Tomcat, why are you vainly
looking in Tomcat doc for JNI information?  You need to become familiar
with JNI, for which Sun has tutorials available.  Note that the rule
that a native library can be loaded only once is a Java rule, not a
Tomcat one.

You're making this much harder than it really is.  As people have
pointed out before, if you're on a Linux/UNIX platform, set
LD_LIBRARY_PATH to point to where your .so file is located; on Windows
make sure the .dll location is included in PATH.  That's all there is to

Wade C has described an alternative, but it's not completely independent
of container, since it depends on your .war file being expanded into a
real file system, and not all containers do that.

I believe your statement that this situation will become more and more
frequent is erroneous, since there seems to be considerable momentum to
move towards more platform-independence (Java, C#), rather than invest
in high-maintenance languages such as C (and C++).

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message