Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Error Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Error Help" Watch "Error Help" New topic
Author

Error Help

Richard West
Ranch Hand

Joined: Jan 07, 2005
Posts: 127
Hi everyone,

I am doing a custom document in which i am always getting an error at the point when i want to use the java HTMLReader class. The compiler says something about an enclosing instance and i really have no idea what the compiler means.

Here is the code



This is exactly what the compiler says



I do not seem to know what the compiler means about my error on using the java HTMLReader class.

I hope someone can help me with this error

Thank You

Yours Sincerely

Richard West
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

It means you can't use an HTMLReader without an HTMLDocument. Given that you've got an HTMLDocument in the variable "document", the syntax would be

HTMLDocument.HTMLReader reader = document.new HTMLDocument.HTMLReader(...)


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Help
 
Similar Threads
Annonynous inner class error
Name Of file !!!
Variable initializing
nullpointerexception
Accessing Outer Class