Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Nebojsa Topolscak - 13 Jan 2005 21:50 GMT
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
Jon Caldwell - 13 Jan 2005 23:02 GMT
> Hello,
>
[quoted text clipped - 8 lines]
> best regards,
> Nebojsa

Try passing "-Djava.awt.headless=true" into the java command.
Nebojsa Topolscak - 14 Jan 2005 13:22 GMT
Thank you, this works !

best,
Nebojsa

> Try passing "-Djava.awt.headless=true" into the java command.
Jon Caldwell - 14 Jan 2005 22:43 GMT
> Thank you, this works !
>
> best,
> Nebojsa
>
>>Try passing "-Djava.awt.headless=true" into the java command.

I didn't 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.