473,732 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ridiculous - javax.swing.tex t.html.HTMLEdit orKit.Parser needs X11 server to work

Hello,

I wrote application which doesn't use graphic at all. One part of
application
needs Parser class from javax.swing.tex t.html.HTMLEdit orKit. 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
2 2676
Nebojsa Topolscak wrote:
Hello,

I wrote application which doesn't use graphic at all. One part of
application
needs Parser class from javax.swing.tex t.html.HTMLEdit orKit. 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
Nebojsa Topolscak wrote:
Hello,

I wrote application which doesn't use graphic at all. One part of
application
needs Parser class from javax.swing.tex t.html.HTMLEdit orKit. 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.headl ess=true" to your JVM arguments, if the JVM is >=
1.4.x then it should work.

Regards
Kim Rasmussen
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
11229
by: Rui Pacheco | last post by:
Hi I am developing an Swing applet. I am using Eclipse as my IDE and I am compiling the classes through the command line. Everything went ok, but suddenly it started to give the error "Package javax.swing not found in import." I searched Google groups and found that it's a classpath problem, but I can't seem to get it right. Can anyone help me? And why did it break all of a sudden, without any changes to the system? This is my...
5
14715
by: Asad Khan | last post by:
Hi, I am using DrJava, and I am writing a program that has the following statement: import javax.swing; It gives me this error when compiled: File: C:\Program Files\DrJava\CustomJFrame.java
3
4863
by: Sherrod Faulks | last post by:
I'm using Jython and in the python script I do: from javax import swing result = javax.swing.JOptionPane.showInputDialog(wC, cmd,"Prompt from " + client.serverName, JOptionPane.PLAIN_MESSAGE) wC is a JFrame, cmd is a String and client.serverName is a String. It won't show the JOptionPane, why?
2
5380
by: Big D | last post by:
Hi all, I'm working on a little app that will go through a text file (right now a "rich text" document), and parse it into a pseudo-html that our flash programmers can use in their presentation. I'm having a lot of trouble, because the rtf format is quite complicated... at first we thought it seemed that there was no "nesting" of formatting, but every once in a while it seems like there is. Also, depending on the complexity of the...
2
2672
by: David Virgil Hobbs | last post by:
Loading text strings containing HTML code into an HTML parser in a Javascript/Jscript I would like to know, how one would go about loading a text string containing HTML code, so as to be able to use javascript or Jscript to work with the HTML code in the text string, in the same way that one works with XML code in a text string using the XML parser. If I was able to load the text string containing the HTML code succesfully, I would be...
12
11336
oll3i
by: oll3i | last post by:
when i launch the application from sun application server the console opens throws something i cannt even read what and closes before the application opened and threw nullpointerexception now it suddenly stopped even opening ? but when i run it form bat with JAVA_CLIENT parameter it throws javax.ejb.EJBException: nested exception is: java.rmi.RemoteException: package library.common; import java.sql.ResultSet;
8
6163
oll3i
by: oll3i | last post by:
it worked but suddenly when i run it and click a button it throws exception ? D:\SR>java Producent queue1 queue2 queue3 queue4 queue1,queue2,queue3,queue4 javax.naming.NoInitialContextException: Cannot instantiate class: org.exolab.jms .jndi.InitialContextFactory at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 57) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288 )
1
1634
by: CodeTilYaDrop | last post by:
Hello, I am trying to show a shape in the Javax.swing.JFrame package. I am using a frame to show it, but I can not get the add method to work. Can someone give me a good example of adding something to a frame with an add method. My code looks like the following: frame.add(component); I get an error message when trying to add the component to the frame. Any suggestions please....
2
8727
by: HaifaCarina | last post by:
i have this unfinished java program and i can't figure out what is the problem.. please help... /** * @(#)Answer3.java * * * @author * @version 1.00 2008/1/17
0
8944
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9306
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9234
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6733
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2177
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.