libjcapi.so : The jcapi c++ library for linux (32-bit version).
Linux libjcapi.so:
- you need (i.e. SuSE 8.2):
- /usr/lib/libcapi20.so
- java sdk i.e. Sun's 1.4.2 which you will find by default in /usr/java/j2sdk1.4.2/
- /usr/java/j2sdk1.4.2/include/jni.h (you need to put these in the compilers search path)
- /usr/java/j2sdk1.4.2/include/linux/jni_md.h
- uk_co_mmscomputing_device_capi_jcapi.h - open console and cd to jcapi.cpp directory
- compile jcapi.cpp and therefore generate the library libjcapi.so like this :
g++ -Wall -fPIC -pthread -D_REENTRANT -D_GNU_SOURCE jcapi.cpp -L/usr/lib -shared -o libjcapi.so - put libjcapi.so into library path of java program (4 possibilities):
- use -Djava.library.path=... option, when you start the program.
- copy libjcapi.so to the java virtual machine's library folder /usr/java/j2sdk1.4.2/jre/lib/i386 (Available for all programs started with this jvm [java virtual machine])
- or copy libjcapi.so to the operating system's library folder /usr/lib. (Available for all java programs and jvms)
- or use uk.co.mmscomputing.util.JarLib.load(...)
TIP: How to turn *.ps files into *.sff with ghostscript
gs -q -dNOPAUSE -dBATCH -r200 -sOutputFile=test.sff -sDEVICE=cfax test.ps
Package : uk.co.mmscomputing.device.capi.lin32