By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,933 Members | 1,574 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,933 IT Pros & Developers. It's quick & easy.

ridiculous - javax.swing.text.html.HTMLEditorKit.Parser needs X11 server to work

P: n/a
Hello,

I wrote application which doesn't 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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Nebojsa Topolscak wrote:
Hello,

I wrote application which doesn't 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


Why dont you parse html with a (fault tolerant) xml parser?
Jul 17 '05 #2

P: n/a
Nebojsa Topolscak wrote:
Hello,

I wrote application which doesn't 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


Add "-Djava.awt.headless=true" to your JVM arguments, if the JVM is >=
1.4.x then it should work.

Regards
Kim Rasmussen
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.