2017-07-12 4 views
0

Javaでファイルを編集していますが、netbeansでビルドしたときにエラーが表示されます。私が変更を加えるまではうまくいきました。 jarファイルがなぜ以前に動作するのか分かりませんが、今は構築できません。私はノブです...どうすればこれらのパッケージを入手できますか?ありがとう。netbeansでパッケージを追加する


C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:15: error: package org.jsoup does not exist 
import org.jsoup.Jsoup; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:16: error: package org.jsoup.nodes does not exist 
import org.jsoup.nodes.Document; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:17: error: package org.jsoup.nodes does not exist 
import org.jsoup.nodes.Element; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:18: error: package org.jsoup.select does not exist 
import org.jsoup.select.Elements; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:19: error: package org.openqa.selenium does not exist 
import org.openqa.selenium.By; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:20: error: package org.openqa.selenium does not exist 
import org.openqa.selenium.Keys; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:21: error: package org.openqa.selenium does not exist 
import org.openqa.selenium.WebDriver; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:22: error: package org.openqa.selenium does not exist 
import org.openqa.selenium.WebElement; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:23: error: package org.openqa.selenium.chrome does not exist 
import org.openqa.selenium.chrome.ChromeDriver; 
C:\Users\Hendrick Brutsaert\Desktop\scrapers\Investing (1)\Investing\src\investing\InvesterMain.java:24: error: package org.openqa.selenium.interactions does not exist 
import org.openqa.selenium.interactions.Actions; 

答えて

0

jsoup.jarのパスに似ており、selenium.jarが正しく配置されていません。 まず、jsoup.jarをhereとselenium.jarからhereにダウンロードし、プロジェクトのライブラリに追加してください。

プロジェクトウィンドウでプロジェクトを展開し、ライブラリを右クリックしてjar/folderを追加し、jsoup.jarselenium.jarファイルの場所を見つけて追加します。プロジェクトをビルドします。

0

あなたがプロジェクトにサードパーティの依存関係のjarファイルを含めることになっています。

https://jsoup.org/download http://docs.seleniumhq.org/download/

あなたはここからダウンロードできます。 プロジェクトのプロパティを編集し、ライブラリに移動してこれらのjarファイルを追加します。それをしなければならない。

関連する問題