P
Paul Morrison
Hi
I got this web crawler from the Sun website
http://java.sun.com/developer/technicalArticles/ThirdParty/WebCrawler/WebCrawler.java,
but when trying to compile it, I get the following errors:
WebCrawler.java:16: reference to List is ambiguous, both class
java.util.List in java.util and class java.awt.List in java.awt match
List listMatches;
^
WebCrawler.java:76: reference to List is ambiguous, both class
java.util.List in java.util and class java.awt.List in java.awt match
listMatches = new List(10);
^
WebCrawler.java:76: java.util.List is abstract; cannot be instantiated
listMatches = new List(10);
^
WebCrawler.java:77: cannot find symbol
symbol : method add(java.lang.String,java.util.List)
location: class java.awt.Panel
panelListCurrent.add("North", listMatches);
^
WebCrawler.java:207: cannot find symbol
symbol : method removeAll()
location: interface java.util.List
listMatches.removeAll();
^
Could this be because I am running a newer version of Java than this was
made of? Ive tried changing the type of listMatches to java.util.List, but
that just creates more problems.
Any help would be much appreciated.
I got this web crawler from the Sun website
http://java.sun.com/developer/technicalArticles/ThirdParty/WebCrawler/WebCrawler.java,
but when trying to compile it, I get the following errors:
WebCrawler.java:16: reference to List is ambiguous, both class
java.util.List in java.util and class java.awt.List in java.awt match
List listMatches;
^
WebCrawler.java:76: reference to List is ambiguous, both class
java.util.List in java.util and class java.awt.List in java.awt match
listMatches = new List(10);
^
WebCrawler.java:76: java.util.List is abstract; cannot be instantiated
listMatches = new List(10);
^
WebCrawler.java:77: cannot find symbol
symbol : method add(java.lang.String,java.util.List)
location: class java.awt.Panel
panelListCurrent.add("North", listMatches);
^
WebCrawler.java:207: cannot find symbol
symbol : method removeAll()
location: interface java.util.List
listMatches.removeAll();
^
Could this be because I am running a newer version of Java than this was
made of? Ive tried changing the type of listMatches to java.util.List, but
that just creates more problems.
Any help would be much appreciated.