rajkiransuram / able

Automatically exported from code.google.com/p/able
0 stars 0 forks source link

javac: invalid target release: 1.6 while mvn install #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

 Installing /home/dunsun/workspace/able-read-only/pom.xml to
/home/dunsun/.m2/repository/able/able/0.1-SNAPSHOT/able-0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Able Library
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 43 source files to
/home/dunsun/workspace/able-read-only/able-lib/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Failure executing javac, but could not parse the error:
javac: invalid target release: 1.6
Usage: javac <options> <source files>

Original issue reported on code.google.com by dun...@gmail.com on 31 Jan 2009 at 11:34

GoogleCodeExporter commented 9 years ago
I forgot to write that I had tried both jdk combinations 1.5,1.6.
And I have tried to change target version in pom files. None of these helped.
I'm running Ubuntu Intrepid and std. Sun's JDK.
Any suggestions ?

Original comment by dun...@gmail.com on 31 Jan 2009 at 3:02

GoogleCodeExporter commented 9 years ago
Sorry ... my fault ... this is not a bug.
I was having too many jdk versions (5) paths on my computer.
Problem solved.

Original comment by dun...@gmail.com on 1 Feb 2009 at 8:47

GoogleCodeExporter commented 9 years ago
mostly people have old version of java i.e. jdk1.5. and we set path for javac 
to 
execute any where.  So mvn uses javac of jdk1.5. That is the reason we get such 
error. 
So first of all remove jdk1.5 then u can come to know that jdk1.6's javac is 
not used 
and u can change on path variable. 

Original comment by mpa...@gmail.com on 18 Aug 2009 at 7:34

GoogleCodeExporter commented 9 years ago
i'm getting the SAME error....n i have only one jdk viz...1.5...plz help

Original comment by rohan.29...@gmail.com on 12 Dec 2011 at 6:26