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 -
testdata/ 12-Jul-2007 16:08 -
servlet/ 12-Jul-2007 16:08 -
javatest.gold 18-Dec-2006 23:20 4k
j_neo_util.h 18-Dec-2006 22:36 1k
j_neo_util.c 19-Dec-2006 18:44 13k
j_neo_cs.c 19-Dec-2006 18:44 5k
j_neo_cgi.c 30-Jun-2005 14:51 1k
clearsilver.jar 01-Feb-2007 20:06 8k
Makefile 01-Feb-2007 20:06 2k
JNI.java 01-Feb-2007 20:06 2k
HDF.java 01-Feb-2007 20:06 13k
CSUtil.java 18-Dec-2006 23:26 2k
CSTest.java 05-Jan-2007 17:22 10k
CSFileLoader.java 05-Jan-2007 17:22 1k
CS.java 01-Feb-2007 20:06 3k
CGI.java 01-Feb-2007 20:06 1k
----------------------------------
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.