J.Pietschmann wrote: > > in a headless environment, I get a runtime error that halts the JVM. > > This is interesting, but you'll probably get more and better > answers on comp.lang.java or a more specialized Java forum.
I wasn't looking for an answer here, as I really didn't think there was a java solution. This was simply background for a discussion about how best to work around it in the font work I am doing. > I'm not sure why you take this trouble, can't you control or at least > reliably determine the run time environment in advance? You can > install PJA in case you encounter a headless Java 1.3 environment. Perhaps I did not give enough background. One of the reasons for the font refactoring work I am doing is to give FOP access to system fonts. These fonts are available through methods in java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(). The JDK will compile the code, but the runtime was choking in a headless environment. Since I am writing this as an enhancement for FOP in general (as opposed to only my own installation), the answer is no -- I cannot control or determine the runtime environment in advance. Rhett Aultman wrote: > I'm curious. What's the error and stacktrace for that error? > Have you tried catching things of type Throwable? I had tried to catch a RunTimeException without success. It frankly did not occur to me to try to catch a Throwable, but based on your suggestion, I did, and it does catch it correctly. Thanks very much. Also, my apologies to Joerg et al for asking a java question here -- I really did think it was a FOP workaround question. Victor Mote --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]