import, .java files, and jsoup-1.6.1
I have only been programming java for maybe a day now (was doing basic C++ before). I have found a "class" I think its called in java, called jsoup for downloading html pages. the jsoup-1.6.1.jar file is the file I acquired for doing that but I don't see how to apply it to a .java file. do I write a line such as "import java<blah blah blah>"? And should I have the .jar file I referenced located in a particular directory? What, exactly, would I write in the program to utilize it (and or other such files)? ATM I plan on just starting off with a basic "java" file, console, no window, no additional files associated with any "workspace" or "project".
Re: import, .java files, and jsoup-1.6.1
Quote:
Originally Posted by
dalydir
I have only been programming java for maybe a day now (was doing basic C++ before). I have found a "class" I think its called in java, called jsoup for downloading html pages. the jsoup-1.6.1.jar file is the file I acquired for doing that but I don't see how to apply it to a .java file. do I write a line such as "import java<blah blah blah>"? And should I have the .jar file I referenced located in a particular directory? What, exactly, would I write in the program to utilize it (and or other such files)? ATM I plan on just starting off with a basic "java" file, console, no window, no additional files associated with any "workspace" or "project".
Do you need that .jar file if you are just starting java programming? Maybe after you learn the basics of Java, you can then use that jsoup file to download your htmls. Hope you will learn more from tutorials provided by this forum.
Re: import, .java files, and jsoup-1.6.1
To use the classes etc from a jar file, you need documentation for the classes and files it contains.