Or, only import the classes you want use (at least from java lib). Who has the permission to change and commit to CVS?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chirag Chaman Sent: Tuesday, January 18, 2005 3:15 PM To: [EMAIL PROTECTED]; [email protected] Subject: RE: [Nutch-dev] Nutch 0.6 release does not compile under java 1.5 Ah! I think someone should add "org.apache.lucene.util." in front of PriorityQueue and check in the files to CVS. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jay Yu Sent: Tuesday, January 18, 2005 3:07 PM To: [email protected] Subject: [Nutch-dev] Nutch 0.6 release does not compile under java 1.5 Just downloaded the 0.6 release and tried to compile it under java 1.5. It failed due to the ambiguity of one class PriorityQueue in Lucene: Here is the error message: buildfile: build.xml init: [mkdir] Created dir: /home/jyu/src/nutch-0.6/build [mkdir] Created dir: /home/jyu/src/nutch-0.6/build/classes [mkdir] Created dir: /home/jyu/src/nutch-0.6/build/test [mkdir] Created dir: /home/jyu/src/nutch-0.6/build/test/classes compile-core: [javac] Compiling 196 source files to /home/jyu/src/nutch-0.6/build/classes [javac] /home/jyu/src/nutch-0.6/src/java/net/nutch/indexer/IndexOptimizer.java:81: reference to PriorityQueue is ambiguous, both class org.apache.lucene.util.PriorityQueue in org.apache.lucene.util and class java.util.PriorityQueue in java.util match [javac] private static class ScoreDocQueue extends PriorityQueue { [javac] ^ [javac] /home/jyu/src/nutch-0.6/src/java/net/nutch/analysis/FastCharStream.java:92: warning: [deprecation] getLine() in net.nutch.analysis.CharStream has been deprecated [javac] public final int getLine() { [javac] ^ [javac] /home/jyu/src/nutch-0.6/src/java/net/nutch/analysis/FastCharStream.java:89: warning: [deprecation] getColumn() in net.nutch.analysis.CharStream hasbeen deprecated [javac] public final int getColumn() { [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error [javac] 2 warnings BUILD FAILED /home/jyu/src/nutch-0.6/build.xml:64: Compile failed; see the compiler error output for details. Since Tomcat 5 requires java 1.5, this means Nutch 0.6 may not work under Tomcat 5. Of course the error can be easily corrected in Lucene. Thanks Jay ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
