Posts Tagged ‘nekohtml’

Android Nekohtml – Project postponed

Saturday, January 31st, 2009

2Ch Android Logo

I am sorry to announce that the Html project is postponed to a later date.

Would like to complete the 2Chan browser as soon as possible, and although an Html parser would have been nice, it is not really necessary. For the 2chan browser, the parser required is quite simple and can be accomplished by a dedicated parser.

Again, sorry, and I do promise to continue this project at a later date.

One more comment on Nekohtml: If you are familiar with it, you know it requires Xerces, therefore the porting project should start from that. There is a guy who claimed he has done that, but I couldn’t find any link to the ported lib.

The Android Logo (AKA Droid Robot) was modified. Original logo is shared by Google and used according to terms described in the Creative Commons 2.5 Attribution License.

Android + Nekohtml – the Naive approach

Friday, January 30th, 2009

Nekohtml zip includes a JAR file.

Naive approach:

Add the JAR to the build path, and hope for the best.

How:

  1. Quite simple, create a lib directory under the project, copy the JAR file.
  2. Add code that access the nekohtml:
DOMParser parser = new DOMParser();

Result:

Failed!

W/dalvikvm(  170): Unable to resolve superclass of Lorg/cyberneko/html/parsers/DOMParser; (115)
W/dalvikvm(  170): Link of class 'Lorg/cyberneko/html/parsers/DOMParser;' failed
W/dalvikvm(  170): VFY: unable to resolve new-instance 196 (Lorg/cyberneko/html/parsers/DOMParser;)