I have been there and here I share with you some ideas which may not be the answer to your question but might be helpful for the work you want to do.
Sometimes ago I developed a java application and for the report generator, I wanted to use LaTeX to achieve some very beautiful reports. While trying to achieve my goal I found some tools (some are java archives and some aren't):
- New Typesetting System (NTS) is a reimplementation of the typesetting system TeX in Java.
- JLR by NIXO SOFT as you have also mentioned in your question.
- For math only there is jLaTeXMath which is a fork of jMathTex.
- In this
StackOverflow question, you can find some suggestions.
- Here they explain how to run tex on
JVM. Have a look at it.
The problem is, none of the solutions above worked me (However at that time I was not aware of the NTS). What I did at the end, was to create my own mini-latex-distribution consisting binaries and packages that I needed for my reports and deployed it with my java application. Sadly, depending on the type of report you want to generate, this mini-distribution might ended up being several hundred megabytes. I'm afraid I don't know (and I'm not sure if exists) any solution which solely rely on java archives (jar).
pdflatexprogram found in the system path. A.warfile deployed into a servlet container has a very limited scope and, even if we could find out a batteries-included pure Java implementation of TeX and friends, we would end up with both system and JVM restrictions.:(I know it's heartbreaking, but maybe LaTeX isn't the best option for you right now, since the server is not under your control. I'd take a look at JasperReports or BIRT. – Paulo Cereda Mar 29 '13 at 10:36