I'm a big noo in Java, but I should try htmlinit, using Netbeen as my IDE And I have created a project folder "Who 1" Here is the structure for that folder:
h1> Nbproject & gt; Source & gt; Hu 1 & gt; Now, I download htmlunit 2.7 and unzip the folder, in which there is a "Lib" folder with a group of jar files. Where can I put that script folder in my Netbeans project folder so that I can use htmlinit? Besides, once I thought, which path should I use for my imports? I have seen a lot of examples on the web, use something like this:
Import com.gargoylesoftware.htmlunit.BrowserVersion; Import com.gargoylesoftware.html well.page;
Where does the com.gargoyles software come from?
I know this is an early question, and I really should read how to program with Java, but I would appreciate some advice from experts here.
Update: Here is a picture of my setup
Now, I download htmlunit 2.7 and unzip the folder, which contains the" Lib "folder along with a group of jar files in my Netbeans project folder. Where can I use htmlinit?
First, register the libraries in the IDE.
- In IDE, select Tools> Library to open the Library Manager. Click New Library and provide a name for the library, such as "HTMLUnit"
- With the selected "HTMLUnit" library, "JR / folder" Click the Add ... button and select the jar file that was previously downloaded and click OK to complete <
- Select the project from the project view, select < Strong> Right-click and select " Properties "
- Under the Library category, " Library Add ... and click the HTMLUnit library and OK to complete
(... ) Com.gargoylesoftware where do they come from?
You must add to the library (more accurate, from the htmlunit jar).
Comments
Post a Comment