Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javac: invalid target release: 1.6 with eclipse

717608Sep 24 2011 — edited Dec 13 2011
Hi All,

I am new to maven. I am running maven install with eclipse,

I have jdk 1.5 installed, but I am getting error

+[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project extranet: Compilation failure+
+[ERROR] Failure executing javac, but could not parse the error:+
+[ERROR] javac: invalid target release: 1.6+
+[ERROR] Usage: javac <options> <source files>+
+[ERROR] where possible options include:+
+[ERROR] -g Generate all debugging info+
+[ERROR] -g:none Generate no debugging info+
+[ERROR] -g:{lines,vars,source} Generate only some debugging info+
+[ERROR] -nowarn Generate no warnings+
+[ERROR] -verbose Output messages about what the compiler is doing+
+[ERROR] -deprecation Output source locations where deprecated APIs are used+
+[ERROR] -classpath <path> Specify where to find user class files+
+[ERROR] -cp <path> Specify where to find user class files+
+[ERROR] -sourcepath <path> Specify where to find input source files+
+[ERROR] -bootclasspath <path> Override location of bootstrap class files+
+[ERROR] -extdirs <dirs> Override location of installed extensions+
+[ERROR] -endorseddirs <dirs> Override location of endorsed standards path+
+[ERROR] -d <directory> Specify where to place generated class files+
+[ERROR] -encoding <encoding> Specify character encoding used by source files+
+[ERROR] -source <release> Provide source compatibility with specified release+
+[ERROR] -target <release> Generate class files for specific VM version+
+[ERROR] -version Version information+
+[ERROR] -help Print a synopsis of standard options+
+[ERROR] -X Print a synopsis of nonstandard options+
+[ERROR] -J<flag> Pass <+

Plesae suggest to resolve the problem.

I hav echcked java_home,
classpath, path.

But problem not resolve.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2011
Added on Sep 24 2011
2 comments
1,094 views