tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <>
Subject [APR-JAVA] cvs upload
Date Thu, 13 Jan 2005 10:25:05 GMT
Hi all,

You can find the sources at:
File is:

My intention is to put that inside:

Although OtherBill thinks this is not a proper
place to put that code, IMO until we have a
generic infrastructure inside APR for OO languages
glue code it can be placed here thought.

How to build the library:
1. You will need system environment variable
    JAVA_HOME that points to J2SDK installation path
2. Create directory of your choice and unpack
    apr-1.0.1.tar.gz in directory apr.
3. Unpack apr-java.tar.gz

It should look like:

4. Build APR
5. Build APR-JAVA
6. cd java\org\apache\apr\jni
7. javac *.java
8. copy libapr-1.dll to java directory
9. copy libaprjava-1.dll to java directory
10. cd java
11. java org.apache.apr.jni.Test

1. export JAVA_HOME=/path/to/the/java
2. mkdir work
3. cd work
4. tar zxf /path/to/apr-1.0.1.tar.gz
5. tar zxf /path/to/apr-java.tar.gz
Building APR
7. cd apr-1.0.1
8. ./configure
9. make
10. make install
11. cd ../apr-java
12. ./buildconf --with-apr=../apr-1.0.1
13. ./configure --with-apr=../apr-1.0.1
   or ./configure --with-apr=/usr/local/apr
14. make
15. make install
16. export LD_LIBRARY_PATH=/usr/local/apr/lib
17. cd java
18. $JAVA_HOME/bin/javac org/apache/apr/jni/*.java
19. $JAVA_HOME/bin/java org.apache.apr.jni.Test

That's it.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message