ridiculous - JAVAx.swing.text.html.HTMLEditorKit.Parser needs X11 server to work
4 Message(s) by 2 Author(s) originally posted in java misc
| From: Nebojsa Topolscak |
Date: Thursday, January 13, 2005
|
Hello,
wrote in
message application which does not use graphic at all. One part of
application
needs Parser
class from JAVAx.swing.
text .html.
HTML EditorKit. The ridiculous
fact is when I try to
instantiate parser , jvm wants to
connect to X11
server .
That means that I need X-server for simple html text parsing. Is there any
workaround for this issue ? Any help appreciated.
best regards,
Nebojsa
| From: Jon Caldwell |
Date: Thursday, January 13, 2005
|
wrote in message:
Hello,
wrote in message application which does not use graphic at all. One part of
application
needs Parser class from JAVAx.swing.text.html.HTMLEditorKit. The ridiculous
fact is when I try to instantiate parser, jvm wants to connect to X11
server.
That means that I need X-server for simple html text parsing. Is there any
workaround for this issue ? Any help appreciated.
best regards,
Nebojsa
Try passing "-DJAVA.awt.headless=true" into the JAVA command.
| From: Nebojsa Topolscak |
Date: Friday, January 14, 2005
|
Thank you, this works !
best,
Nebojsa
Try passing "-DJAVA.awt.headless=true" into the JAVA command.
| From: Jon Caldwell |
Date: Friday, January 14, 2005
|
wrote in message:
Thank you, this works !
best,
Nebojsa
Try passing "-DJAVA.awt.headless=true" into the JAVA command.
I did not explain this too well. In case you are curious, JAVA tries to
access X's
font server unless the
JVM is in headless mode, in which case
this, and graphics functions are implemented in pure JAVA, instead of
OS-dependencies.
Next Message: .class file includes debug info??