Index of /www001/src/ports/www/clearsilver-python/work/clearsilver-0.10.5/java-jni
Name Last modified Size Description
Parent Directory 15-Jan-2008 04:36 -
servlet/ 12-Jul-2007 16:08 -
testdata/ 12-Jul-2007 16:08 -
CGI.java 01-Feb-2007 20:06 1k
j_neo_util.h 18-Dec-2006 22:36 1k
CSFileLoader.java 05-Jan-2007 17:22 1k
j_neo_cgi.c 30-Jun-2005 14:51 1k
CSUtil.java 18-Dec-2006 23:26 2k
JNI.java 01-Feb-2007 20:06 2k
Makefile 01-Feb-2007 20:06 2k
CS.java 01-Feb-2007 20:06 3k
javatest.gold 18-Dec-2006 23:20 4k
j_neo_cs.c 19-Dec-2006 18:44 5k
clearsilver.jar 01-Feb-2007 20:06 8k
CSTest.java 05-Jan-2007 17:22 10k
HDF.java 01-Feb-2007 20:06 13k
j_neo_util.c 19-Dec-2006 18:44 13k
----------------------------------
Clearsilver JavaJNI wrapper
by David Jeske
Distributed under the Neotonic ClearSilver License
----------------------------------
This is a Java Native Interface (JNI) wrapper for the ClearSilver
templating library. The files in this directory build into both
a clearsilver.jar file with Java classes, and a native library
libclearsilver-jni.so.
BUILDING
After building clearsilver, just type "make" twice. The first
time you build it builds the depend, and throw some random error,
I don't know why.
INSTALLING
You must put the native library into a standard library location
(i.e. like /lib), or make sure that Java can find it by using
the java command line directive:
-Djava.library.path=/somewhere/else
Then you must put the clearsilver.jar file into your java
CLASSPATH.
USING
See the example CSTest.java for an example of how to import
and use the clearsilver objects.
USING in a servlet
Since the most common usage of Clearsilver is in a servlet,
we've provided some examples of how to use it in the servlet/
directory.