1 ---------------------------------- 2 Clearsilver JavaJNI wrapper 3 by David Jeske 4 Distributed under the Neotonic ClearSilver License 5 ---------------------------------- 6 7 This is a Java Native Interface (JNI) wrapper for the ClearSilver 8 templating library. The files in this directory build into both 9 a clearsilver.jar file with Java classes, and a native library 10 libclearsilver-jni.so. 11 12 BUILDING 13 14 After building clearsilver, just type "make" twice. The first 15 time you build it builds the depend, and throw some random error, 16 I don't know why. 17 18 INSTALLING 19 20 You must put the native library into a standard library location 21 (i.e. like /lib), or make sure that Java can find it by using 22 the java command line directive: 23 24 -Djava.library.path=/somewhere/else 25 26 Then you must put the clearsilver.jar file into your java 27 CLASSPATH. 28 29 USING 30 31 See the example CSTest.java for an example of how to import 32 and use the clearsilver objects. 33 34 USING in a servlet 35 36 Since the most common usage of Clearsilver is in a servlet, 37 we've provided some examples of how to use it in the servlet/ 38 directory. 39 40 41