Hi all,
You can find the sources at: http://www.apache.org/~mturk/ File is: http://www.apache.org/~mturk/apr-java.tar.gz
My intention is to put that inside: jakarta-tomcat-connectors/apr-java
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: WIN32: 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: <some_path>\apr <some_path>\apr-java
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
UNIX: 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.
Mladen.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
