helio wrote: > Hi, > > I've encountered a strange error executing "mvn compile", as follows: > > [DEBUG] > /home/helio/buscape/projetos/tsunami/eclipse-desenv/SOA-Ofertas-modulos/src/main/java > > [INFO] Compiling 17 source files to > /home/helio/buscape/projetos/tsunami/eclipse-desenv/SOA-Ofertas-modulos/target/classes > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Compilation failure > > /home/helio/buscape/projetos/tsunami/eclipse-desenv/SOA-Ofertas-modulos/src/main/java/com/buscape/oferta/lookup/OfferLookupManager.java:[126,39] > cannot find symbol > symbol : method > binarySearch(java.util.List<byte[]>,byte[],java.util.Comparator<byte[]>) > location: class java.util.Collections > > as you see, it can not find the method "binarySearch" of the class > "java.util.Collections". That method does exist and the call is correct > -- I've tried to create another project using the same method > "binarySearch" and the new application works fine. But I can not > understand why this error has happened. If I try to remove the class > "OfferLookupManager", the project can be compiled by maven. > > I'm using the maven 2.0.7 and Java 1.5.0_09. Could anybody help me, > please?
Are you sure that your JAVA_HOME points to the 1.5 JDK? I have seen cases where the java that's invoked from the commandline is not in sync with where JAVA_HOME points, leading to all kinds of trouble. -dirk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
