作者decken ()
看板java
標題[問題] WebClient cannot be resolved to a type
時間Wed Feb 18 02:34:30 2009
===================================================
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.Assert;
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
final WebClient webClient = new WebClient();
====================================================
有把 WebClient class import進來,
並且 htmlunit-2.4.jar 也有放到classpath裡面,
但是,eclipse還是一直說找不到 type,
想請問有大大知道原因嗎?
謝謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.62.50
推 supertitler:.jar裡面有WebClient.class嗎@@? 02/18 02:48
→ decken:在htmlunit.jar裡面的com\gargoylesoftware\htmlunit 02/18 09:57
推 qrtt1:clean project 試試 02/18 10:32
→ decken:不好意思,請問clean project是? 02/18 12:17