Home
Analytics
Missing org.w3c.tidy.Tidy.jar
JDH
I am getting a jav.lang.NoClassDefFoundError: org/w3c/tidy/Tidy running Eclipse in Report Design. I was attempting to add an additional title to a chart. I could not do it in the chart itself so I decided to add a text element before the chart. When I do this I get the above error if the text is HTML. If the text is not HTML I don't get the error but it just prints the text.
I looked through the forum and found that this was a problem reported back in 2.2. The solution was to look in my web server (Tomcat 6.0.20 on Windows 7) under birt-viewer/WEB-INF/platform/configuration for a tidy.jar. Well, there is no jar there. So, I spent the better part of an hour looking for it on the web. I can find a class called Tidy.class in several packages including one called JTidy.jar. So, I downloaded that and put it in the configuration directory. It provided no fix.
So, this leads me to the following question: Is there a way to have a chart with a title and sub-titles that looks something like this
Result Data
for Device xyx
from 10-3-2010 to 10-30-2010
Either I need to understand how to make this happen in a chart or I need to understand how to make it happen outside the chart as part of the same report.
By the way, I tried putting the chart inside a detail line in a table and putting the title in the detail line above. I got some very strange error complaining about needing a database reference. The chart already has one as part of it so this left me clueless.
Thanks for any help you can provide.
Find more posts tagged with
Comments
mwilliams
Hi John,
You can set your chart title in script. This may help in your ability to set it dynamically. As for this other error, can you reproduce it with the sample database and post in here?
JDH
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="75106" data-time="1301329009" data-date="28 March 2011 - 09:16 AM"><p>
Hi John,<br />
<br />
You can set your chart title in script. This may help in your ability to set it dynamically. As for this other error, can you reproduce it with the sample database and post in here?<br /></p></blockquote>
<br />
Michael, I think I need a little more information that "You can set your chart title in script". <br />
<br />
I assume you are suggesting that I write a JavaScript event handler. I see event handlers related to axis titles but not one related to the chart title itself. If I put something in the beforeRender() event handler is there a global variable that I set with what I want my title to be? How do I do multiple lines that are centered? Does this variable accept HTML?
mwilliams
Sorry, you'd set it in script or an event handler with:
function beforeGeneration( chart, icsc )
{
chart.getTitle().getLabel().getCaption().setValue("This is the new title")
}
No, you won't be able to use HTML in this field. It is just a label of type string. If you want to use HTML in the title, it'll probably have to be done external to the chart in a text element with HTML selected from the drop down. Which brings us back to when you tried this before. Were you setting the drop down value to HTML? If so, what is you BIRT version? I have not seen this issue in any recent versions.
JDH
Michael,
I am running BIRT 2.6.1. The full download for Eclipse.
If I use the title as you suggested, can I embed \n in the String to give me multiple lines or does the tool strip these?
mwilliams
I've not tried it, but I've used "\r\n" in the axis label string to cause a break before, so I would guess it would work.