Paul Clapham wrote:Also, from your eBay User Agreement:
You agree that you will not use any robot, spider, scraper, or other automated means to access our sites for any purpose without our express handwritten permission.
Bear Bibeault wrote:ebay has a very rich API for getting all sorts of information. The way that you are going about this is like trying to drive a car standing on your head in the seat while wearing a straightjacket.
Jesper de Jong wrote:Welcome to the Ranch.
TextPad is just a text editor. As far as I know, it doesn't know anything about Java by itself. So, there's no way to import Java code in any way.
When you compile your code that uses the HTML parser library, you must specify that you're using the library by using the -classpath (or -cp) option on the command line. So, the command to compile your source code would become something like:
C:\MyProject> javac -cp C:\SomeDir\HtmlParser.jar com\mypackage\MyProgram.java
And to run it, you'd specify:
C:\MyProject> java -cp C:\SomeDir\HtmlParser.jar;. com.mypackage.MyProgram
Note: The ";." in the second command is to include the current directory "." into the classpath, because that's where Java is going to look for your own class com.mypackage.MyProgram.
Campbell Ritchie wrote:To set the classpath for a particular project, do exactly what you did earlier. As I said, far better than using an environment variable. As far as I know, that sets the classpath for that particular command window, not the environment, but I might be mistaken.
If you want it for an application wrapped in a jar file, that is different. Look in the Java Tutorials under deployment; you will probably find this section most useful for this particular question.