KPathSea bindings for Java

Erik Nijenhuis erik at xerdi.com
Wed Jul 10 14:03:22 CEST 2024


Hi Karl,

On Tue, 2024-07-09 at 16:48 -0600, Karl Berry wrote:
> Oh. We don't distribute any binary libraries now, and I think building a
> library for distribution across all our platforms is a stopper. 
> Not ground I want to break. Sorry! --best, karl.
Darn, I tried to do the equivalent of lkpselib.c (LuaTeX), but then the Java
way. Of course Java will never do bindings as well as Lua, but it's still way
faster than pure Java implementations. It wasn't my goal to create a Java TeX
compiler though ;)

I can however create a fallback implementation, which simply calls kpsewhich in
a Java Process in case the jkpathsea library is unavailable. That would still
honor the security measures of KPathSea. Then TL simply doesn't have to ship the
binary lib, but if it's found it will be used.

Regards, Erik



More information about the texhax mailing list.