|
From: Bryan T. <tho...@us...> - 2007-04-13 16:48:09
|
Update of /cvsroot/cweb/bigdata/src/java/com/bigdata/btree In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15852/src/java/com/bigdata/btree Modified Files: BytesUtil.java Log Message: Attempting to update the JNI library for Windows. Index: BytesUtil.java =================================================================== RCS file: /cvsroot/cweb/bigdata/src/java/com/bigdata/btree/BytesUtil.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BytesUtil.java 13 Apr 2007 15:55:12 -0000 1.2 --- BytesUtil.java 13 Apr 2007 16:48:05 -0000 1.3 *************** *** 13,20 **** * positions in that byte[] is maintained. * <p> ! * See BytesUtil.c in this package for instructions on compiling the JNI ! * methods. However, note that the JNI methods do not appear to be as fast as ! * the pure Java methods - presumably because of the overhead of going from Java ! * to C. * * @author <a href="mailto:tho...@us...">Bryan Thompson</a> --- 13,17 ---- * positions in that byte[] is maintained. * <p> ! * See {@link #main(String[])} which provides a test for the JNI integration. * * @author <a href="mailto:tho...@us...">Bryan Thompson</a> *************** *** 585,588 **** --- 582,607 ---- * This method tries to execute the JNI methods. * + * See BytesUtil.c in this package for instructions on compiling the JNI + * methods. However, note that the JNI methods do not appear to be as fast + * as the pure Java methods - presumably because of the overhead of going + * from Java to C. + * <p> + * In order to use the JNI library under Windows, you must specify the JNI + * library location using the PATH environment variable, e.g., + * + * <pre> + * cd bigdata + * set PATH=%PATH%;lib + * java -cp bin com.bigdata.btree.BytesUtil + * </pre> + * + * <p> + * In order to use the JNI library under un*x, you must specify the JNI + * library location + * + * <pre> + * java -Djava.library.path=lib com.bigdata.btree.BytesUtil + * </pre> + * * @param args * |