> From: soulboy [mailto:[EMAIL PROTECTED] 
> 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
it.

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


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to