I'm running Windows 2003 server with Eclipse 3.1 and Java 1.5.
I'm trying to make the source code at
http://jakarta.apache.org/commons/httpclient/tutorial.html execute in
eclipse. The program seems to execute properly when I issue the following
commands from a windows command prompt:
SET PATH=%PATH%;C:\Program Files\Java\jdk1.5.0_04\bin
SET CLASSPATH=.;c:\Documents and
Settings\Administrator\.maven\repository\commons-httpclient\jars\commons-htt
pclient-2.0.jar;c:\Documents and
Settings\Administrator\.maven\repository\commons-httpclient\jars\commons-htt
pclient-3.0-rc3.jar;c:\Documents and
Settings\Administrator\.maven\repository\commons-logging\jars\commons-loggin
g-1.0.3.jar
javac -g CrawlIndustryIndex.java
cd ../../../../
java com.signitek.crawl.finance.CrawlIndustryIndex
cd com/signitek/crawl/finance/
DEL CrawlIndustryIndex.class
As you can see, I changed the class name and the package name from the
original.
Made only one other change: I have to comment out the source code line
"method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new
DefaultHttpMethodRetryHandler(3, false));", however, to make it work.
As you can see, I'm trying to use maven. Since I thought the problem might
be with maven or the maven pluggin for eclipse, I created a second eclipse
project without maven. I get the exact same errors, however:
Class File Editor
Source not found
The jar file rt.jar has no source attachement
public classs java.net.URLClassLoader extends
java.security.SecureClassLoader
....
Thanks,
Siegfried