Also tried compiling on jtidy-04aug2000r7-dev & jtidy-04aug2000r7-bin without much luck either.
There are numerous forum conversations on how to use JTidy but nothing on how to build it especially on overcoming Class the compatibility conflict with standard Java distributions that occurred since JDK1.5 back in 2004. I am surprised that no one has updated JTidy to overcome this issue. Any advice or suggestion on this issue would be appreciated.
If this was my problem I would follow the suggestion to use -source 1.4
(use -source 1.4 or lower to use 'enum' as an identifier)
-OR- change the source code to rename the "enum" variable name. Bill
Joined: Oct 20, 2006
I overcame the 'enum' limitation by renaming this variable to non-reserved Java word and successfully completed the Ant build. However, only the Tidy.jar file was generated as opposed to JTidy.jar.
The following program was use to convert a HTML file to XML without success still:
It turned out that the Patient.xml file was still in HTML format. I cross checked the conversion by running the following command using the Tidy utility which successfully produced an equivalent XML file:
In short, the Ant build failed despite having resolved the 'enum' limitation.
The errfile turned out to be slightly different.
Any suggestion would be appreciated.
subject: Could not compile JTidy (jtidy-04aug2000r7-src) with JDK1.6