- From: Michael Goldberg <MGoldberg@yet2.com>
- Date: Thu, 21 Dec 2000 10:10:48 -0800
- To: "'html-tidy@w3.org'" <html-tidy@w3.org>
All, I am trying to use jtidy for the first time, but I get an IllegalAccessError exception with the following stack trace: java.lang.IllegalAccessError: org/w3c/tidy/ParserImpl: field _parseHead is inaccessible at org/w3c/tidy/ParserImpl$ParseHTML.parse (ParserImpl.java) at org/w3c/tidy/ParserImpl.parseDocument (ParserImpl.java) at org/w3c/tidy/Tidy.parse (Tidy.java) at org/w3c/tidy/Tidy.parseDOM (Tidy.java) at WordAccessClass.tidyFile (WordAccessClass.java:129) at WordAccessClass.main (WordAccessClass.java:209) My code is pretty simple. Here's a snippet: FileInputStream inStream = new FileInputStream( inputFilename ); Tidy tidy = new Tidy(); org.w3c.dom.Document tidyOut = null; try { tidyOut = tidy.parseDOM( inStream, null ); } catch( java.lang.IllegalAccessError e ) { System.out.println( "ERROR: " + e.getMessage() ); e.printStackTrace( System.out ); } Unfortunately, it dies on the parseDOM method. Any ideas how to proceed? Sincerely, Michael S. Goldberg mgoldberg@yet2.com
Received on Thursday, 21 December 2000 13:11:21 UTC