I'm looking for a high quality typesetting system to replace TeX.

My problem with TeX is that it's too brittle to deploy for John Doe. I need something that I can package with my Java app, unzip somewhere on the user's computer and be sure that it will work.

If the system is written in Java, that would be great but I'm collecting options right now.