Still no luck here, though I'm closer. It looks like I'm hitting the same thing Jeff and Deneche hit 2 months ago.
I installed JDK 1.5 I double-checked javac - 1.5 I then tried compiling: mvn -Dmaven.compiler.target=1.5 clean compile jar:jar Didn't work, source being 1.6 is still a problem - makes sense, 1.5 compiler knows nothing about 1.6. Tried overriding like this: mvn -Dmaven.compiler.source=1.5 -Dmaven.compiler.target=1.5 clean compile jar:jar This still doesn't work. I thought the above sys properties would override source and target values in pom.xml's, but apparently they don't. I had to s/1.6/1.5/g in all pom.xml's. Now I no longer get javac complaining about bad target or source, but I do hit the actual 1.6 vs. 1.5 issues. :) I think I'm hitting this problem: http://markmail.org/thread/n6vvgrtgczkigx7d Requiring 1.6 makes sense for most of Mahout because Hadoop requires it anyway. But Taste doesn't run on Hadoop yet (I'm running it completely Hadoop-free), so it's a shame not to be able to compile at least Taste with/for 1.5. Should we try fixing that for 0.1 either by removing/commenting out problematic @Override's or by... hm, there is no other way, ha? And then making it possible to somehow build only Taste, or perhaps building Taste with maven is already doable somehow? Thanks, Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Sean Owen <sro...@gmail.com> > To: mahout-dev@lucene.apache.org > Sent: Monday, March 9, 2009 5:15:09 PM > Subject: Re: Mahout for 1.5 JVM > > You need to compile with Java 6, and set source to "1.6" (er, is it > "6" and "5"? Ant accepts both and I bet Maven does too). The target is > indeed "1.5". Java 6 should be able to generate byte code for Java 5; > there is some chance though that the code or a dependency like Hadoop > uses a class or API introduced in Java 6. There weren't many of those > so some large subset of Mahout may indeed work on Java 5. > > What error are you getting? that may point to the problem. > > > On Mon, Mar 9, 2009 at 9:04 PM, Grant Ingersoll wrote: > > Mahout requires 1.6 due to Hadoop requiring 1.6. You'd have to backport to > > an older version of Hadoop. > > > > At any rate, I think the maven stuff looks right. Are you exporting a 1.5 > > JVM JAVA_HOME? I think Maven just uses JAVA_HOME to determine the JVM > > version.