I'm sorry to ask such an elementary question, but I'm fairly new to java.
I use NetBeans IDE, so I'm not so familiar with command line compiling and packaging, etc. I downloaded the htmlparser and I'm really excited to use it... this will work with my project perfectly, but I'm having some problems.
I have a mounted root on e:\spider. I copied the org directory from the htmlparser download to e:\spider. So I have e:\spider\org with all the files that I'm assuming I'll need for my import statements under that directory structure.
I added import org.htmlparser.Parser; to my class, but that doesn't seem to be doing the trick. My IDE isn't registering it for some reason.
I've read somewhere about putting the htmlparser.jar (and 3 other file in the lib directory) somewhere in my jre path... am I supposed to do this? Where exactly should I put it, and will it resolve my import problems?
Any help is greatly appreciated. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I assume by the 'org directory' from the distribution you mean the .java files from the src.zip, and I assume by 'mounted root on e:\spider' you mean you mounted that directory in your Explorer [FileSystems] panel.
To get what you have set up working, I think you need one more step and that's to add 'org' and below to your project. Right click on the top node of your project panel, select "Add Existing...", open your e:\spider node and select the htmlparser org directory, then click OK. Then right click on the new org node and choose 'Build All'.
Generally, people just mount the htmlparser.jar directly if they don't want to modify or step through the source code. Right click on the top node in the FileSystem panel, choose Mount, choose Local Archive, browse to the htmlparser.jar and click OK.
Don't do both of these methods at the same time. You and NetBeans will get really confused.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. I didn't know I could mount the .jar like the second option you presented. It worked well. I'm looking forward to using your code. Maybe I'll be able to contribute something back one of these days.... thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sorry to ask such an elementary question, but I'm fairly new to java.
I use NetBeans IDE, so I'm not so familiar with command line compiling and packaging, etc. I downloaded the htmlparser and I'm really excited to use it... this will work with my project perfectly, but I'm having some problems.
I have a mounted root on e:\spider. I copied the org directory from the htmlparser download to e:\spider. So I have e:\spider\org with all the files that I'm assuming I'll need for my import statements under that directory structure.
I added import org.htmlparser.Parser; to my class, but that doesn't seem to be doing the trick. My IDE isn't registering it for some reason.
I've read somewhere about putting the htmlparser.jar (and 3 other file in the lib directory) somewhere in my jre path... am I supposed to do this? Where exactly should I put it, and will it resolve my import problems?
Any help is greatly appreciated. Thanks.
I assume by the 'org directory' from the distribution you mean the .java files from the src.zip, and I assume by 'mounted root on e:\spider' you mean you mounted that directory in your Explorer [FileSystems] panel.
To get what you have set up working, I think you need one more step and that's to add 'org' and below to your project. Right click on the top node of your project panel, select "Add Existing...", open your e:\spider node and select the htmlparser org directory, then click OK. Then right click on the new org node and choose 'Build All'.
Generally, people just mount the htmlparser.jar directly if they don't want to modify or step through the source code. Right click on the top node in the FileSystem panel, choose Mount, choose Local Archive, browse to the htmlparser.jar and click OK.
Don't do both of these methods at the same time. You and NetBeans will get really confused.
Thanks. I didn't know I could mount the .jar like the second option you presented. It worked well. I'm looking forward to using your code. Maybe I'll be able to contribute something back one of these days.... thanks!