Thank you for the reply,
The class in my original post contains the following line:
font = Font.createFont(Font.TRUETYPE_FONT, fis);
This is what causes my application to stall. Another way the error
has come through is as the following:
java.lang.InternalError: Can't connect to X11 wi
Your class comments indicate a different purpose than your class code,
but assuming a connection in your mind, code something like the
following might be helpful to you:
public class Fonts {
public static Font [] getFonts() {
return GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFo
I agree 100% with Farhad. The problem is not with headless but with
your code. The exception tells you exactly what is happening. Your
code is not finding the font. If you want to build fonts, you have to
upload the font files with the right TextAttribute settings.
On 5/7/05, Daniel Watrous <[
Look at this link:
http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
This option is being used when you are operating on a machine without
graphics support (usually in a server configuration). You will use the
option for example when you want to do some AWT/Swing operation o
Is there at least someone that could tell me where to find more
information about the option "JAVA_OPTS=-Djava.awt.headless=true"?
What exactly is its purpose? Thanks in advance.
Daniel
On 5/6/05, Daniel Watrous <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a web application that uses java.aw
Hello,
I have a web application that uses java.awt.Font objects to render
images. The application will run in tomcat and that is where I have
done development. When I first tried to run the application on a
Linux box with Tomcat 5.0.25 I got the following error:
java.lang.NoClassDefFoundError