Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8630111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:58:51+00:00 2026-06-12T08:58:51+00:00

I am not fully new beginner to Java, I learned Java when I was

  • 0

I am not fully new beginner to Java, I learned Java when I was in collage. I am currently doing a small program for grab data from a online webpage. I do the google reasearch, and find html parser is one of simple way to do that.

My question is how to set up classpath, and import html parser libraries in TextPad?

——My Answer ———————————————–

I have found a way to solved this problem. I think I should post it to here, in case, someone else has same problem as me.

I do not know if it is appropriate way to solved this. here it is.

I have found a link
http://htmlparser.sourceforge.net/javadoc/doc-files/using.html

I downloaded htmlparser zip file, and unziped lib folder to my c drive.
I run this line in CMD.(I am using windows based system.)
set CLASSPATH=C:\lib\htmlparser.jar;C:\lib\htmllexer.jar;%CLASSPATH%
then it works.

I guess this line is for add your new .jar file to your old classpath. %CLASSPATH% means your old classpath.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:58:53+00:00Added an answer on June 12, 2026 at 8:58 am

    I have done a fair amount of screen scraping and found Java to be too cumbersome. In my experience rather use Groovy to screenscrape the data. You won’t need to fiddle with the pesky classpath. As groovy is a dsl for Java and you know Java it will be quite straight forward. You can also use Textpad as an editor.

    For example:

    def slurper = new XmlSlurper()
    def htmlParser = slurper.parse("http://stackoverflow.com")
    
    htmlParser.'**'.findAll{ it.@class == 'question-hyperlink'}.each {
       println it
    }
    

    The above code is from a blog post: http://www.maclovin.de/2010/02/robust-html-parsing-the-groovy-way/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Being resonably new to using GTK+, im not fully aware of all its functionality.
I'm not fully getting all i want from Google analytics so I'm making my
I'm new to GWT and also fairly new to doing Java web development, using
I'm very new to Cake and I'm not fully understand how I should combine
I'm new to Django, so I may just not fully understand how it works
I am new in Symfony2 framework and not fully understand how to work with
I'm still fairly new to SQL and I'm not fully understanding where the problem
i do not fully understand how to communicate between adobe air (using flex3) and
I do not fully understand classes. I have read the python documentation and several
I am getting a warning I do not fully understand every time I run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.