You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Jitendra Chopra <ch...@gmail.com> on 2009/06/25 10:16:46 UTC

Facing issue while creating mahout-core.jsr

Hi ,

I have downloaded Mahout zip.
My JDK version id 1.5.0
Maven 2.1.0

Do Mahout Taste don't work with JDK1.5?
>From where can i find mahout-core.jar?

I try to create Mahout-core.jar with mv install as suggested on site.
I get below error. what could be root cause of this?

[INFO] Compilation failure
Failure executing javac, but could not parse the error:
javac: invalid target release: 1.6
Usage: javac <options> <source files>
where possible options include:
 -g                         Generate all debugging info
 -g:none                    Generate no debugging info
 -g:{lines,vars,source}     Generate only some debugging info
 -nowarn                    Generate no warnings
 -verbose                   Output messages about what the compiler is doing
 -deprecation               Output source locations where deprecated APIs are u
sed
 -classpath <path>          Specify where to find user class files
 -cp <path>                 Specify where to find user class files
 -sourcepath <path>         Specify where to find input source files
 -bootclasspath <path>      Override location of bootstrap class files
 -extdirs <dirs>            Override location of installed extensions
 -endorseddirs <dirs>       Override location of endorsed standards path
 -d <directory>             Specify where to place generated class files
 -encoding <encoding>       Specify character encoding used by source files
 -source <release>          Provide source compatibility with specified release

 -target <release>          Generate class files for specific VM version
 -version                   Version information
 -help                      Print a synopsis of standard options
 -X                         Print a synopsis of nonstandard options
 -J<flag>                   Pass <flag> directly to the runtime system



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Jun 25 13:00:16 IST 2009
[INFO] Final Memory: 14M/26M
[INFO] ------------------------------------------------------------------------
C:\program\SVN\apache-maven-2.1.0\maventest\trunk>mvn installjava -version
Apache Maven 2.1.0 (r755702; 2009-03-19 00:40:27+0530)
Java version: 1.5.0_12
Java home: C:\Program Files\Java\jdk1.5.0_12\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
C:\program\SVN\apache-maven-2.1.0\maventest\trunk>

Re: Facing issue while creating mahout-core.jsr

Posted by Otis Gospodnetic <ot...@yahoo.com>.
You can compile using 1.6, but set the compatibility level to 1.5 in pom.xml.  Then you will be able to *run* it with 1.5.  You'll also need to comment out a few lines in 1-2 classes that use 1.6 APIs.  Here are the files I modified locally in order to be able to compile with 1.6 and run with 1.5:

 
M      core/src/main/java/org/apache/mahout/classifier/bayes/BayesClassifier.java
M      core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesClassifier.java
M      core/pom.xml

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Grant Ingersoll <gs...@apache.org>
> To: mahout-user@lucene.apache.org
> Sent: Thursday, June 25, 2009 7:19:56 AM
> Subject: Re: Facing issue while creating mahout-core.jsr
> 
> 
> On Jun 25, 2009, at 4:16 AM, Jitendra Chopra wrote:
> 
> > Hi ,
> > 
> > I have downloaded Mahout zip.
> > My JDK version id 1.5.0
> > Maven 2.1.0
> > 
> > Do Mahout Taste don't work with JDK1.5?
> > From where can i find mahout-core.jar?
> > 
> 
> You do need 1.6.  I also am unsure about Mvn 2.1.0 vs 2.0.10.  I have seen some 
> reports that 2.1.0 doesn't work with Mahout due to plugin incompatibility, but 
> please report back.
> 
> Once you have that in place, do mvn install at the top level.
> 
> 
> > I try to create Mahout-core.jar with mv install as suggested on site.
> > I get below error. what could be root cause of this?
> > 
> > [INFO] Compilation failure
> > Failure executing javac, but could not parse the error:
> > javac: invalid target release: 1.6
> > Usage: javac 
> > where possible options include:
> > -g                         Generate all debugging info
> > -g:none                    Generate no debugging info
> > -g:{lines,vars,source}     Generate only some debugging info
> > -nowarn                    Generate no warnings
> > -verbose                   Output messages about what the compiler is doing
> > -deprecation               Output source locations where deprecated APIs are u
> > sed
> > -classpath           Specify where to find user class files
> > -cp                  Specify where to find user class files
> > -sourcepath          Specify where to find input source files
> > -bootclasspath       Override location of bootstrap class files
> > -extdirs             Override location of installed extensions
> > -endorseddirs        Override location of endorsed standards path
> > -d              Specify where to place generated class files
> > -encoding        Specify character encoding used by source files
> > -source           Provide source compatibility with specified release
> > 
> > -target           Generate class files for specific VM version
> > -version                   Version information
> > -help                      Print a synopsis of standard options
> > -X                         Print a synopsis of nonstandard options
> > -J                   Pass directly to the runtime system
> > 
> > 
> > 
> > [INFO] 
> ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO] 
> ------------------------------------------------------------------------
> > [INFO] Total time: 5 seconds
> > [INFO] Finished at: Thu Jun 25 13:00:16 IST 2009
> > [INFO] Final Memory: 14M/26M
> > [INFO] 
> ------------------------------------------------------------------------
> > C:\program\SVN\apache-maven-2.1.0\maventest\trunk>mvn installjava -version
> > Apache Maven 2.1.0 (r755702; 2009-03-19 00:40:27+0530)
> > Java version: 1.5.0_12
> > Java home: C:\Program Files\Java\jdk1.5.0_12\jre
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> > C:\program\SVN\apache-maven-2.1.0\maventest\trunk>
> 
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
> 
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using 
> Solr/Lucene:
> http://www.lucidimagination.com/search


Re: Facing issue while creating mahout-core.jsr

Posted by Grant Ingersoll <gs...@apache.org>.
On Jun 25, 2009, at 4:16 AM, Jitendra Chopra wrote:

> Hi ,
>
> I have downloaded Mahout zip.
> My JDK version id 1.5.0
> Maven 2.1.0
>
> Do Mahout Taste don't work with JDK1.5?
> From where can i find mahout-core.jar?
>

You do need 1.6.  I also am unsure about Mvn 2.1.0 vs 2.0.10.  I have  
seen some reports that 2.1.0 doesn't work with Mahout due to plugin  
incompatibility, but please report back.

Once you have that in place, do mvn install at the top level.


> I try to create Mahout-core.jar with mv install as suggested on site.
> I get below error. what could be root cause of this?
>
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
> javac: invalid target release: 1.6
> Usage: javac <options> <source files>
> where possible options include:
> -g                         Generate all debugging info
> -g:none                    Generate no debugging info
> -g:{lines,vars,source}     Generate only some debugging info
> -nowarn                    Generate no warnings
> -verbose                   Output messages about what the compiler  
> is doing
> -deprecation               Output source locations where deprecated  
> APIs are u
> sed
> -classpath <path>          Specify where to find user class files
> -cp <path>                 Specify where to find user class files
> -sourcepath <path>         Specify where to find input source files
> -bootclasspath <path>      Override location of bootstrap class files
> -extdirs <dirs>            Override location of installed extensions
> -endorseddirs <dirs>       Override location of endorsed standards  
> path
> -d <directory>             Specify where to place generated class  
> files
> -encoding <encoding>       Specify character encoding used by source  
> files
> -source <release>          Provide source compatibility with  
> specified release
>
> -target <release>          Generate class files for specific VM  
> version
> -version                   Version information
> -help                      Print a synopsis of standard options
> -X                         Print a synopsis of nonstandard options
> -J<flag>                   Pass <flag> directly to the runtime system
>
>
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Thu Jun 25 13:00:16 IST 2009
> [INFO] Final Memory: 14M/26M
> [INFO]  
> ------------------------------------------------------------------------
> C:\program\SVN\apache-maven-2.1.0\maventest\trunk>mvn installjava - 
> version
> Apache Maven 2.1.0 (r755702; 2009-03-19 00:40:27+0530)
> Java version: 1.5.0_12
> Java home: C:\Program Files\Java\jdk1.5.0_12\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> C:\program\SVN\apache-maven-2.1.0\maventest\trunk>

--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
using Solr/Lucene:
http://www.lucidimagination.com/search