Discussion:
Error on build : "javac: invalid target release: 1.6"
lemaitva
2009-01-08 19:22:39 UTC
Permalink
I am running a java program using NetBeans and the build.xml file I am using needs the 1.6 version of Java applications (But, as indicated in the subject I got an error concerning the version)



I installed the 1.6 version of JDK, changed the source in the project proprieties to "JDK6" but I still have the same error.



What should I do ?
Melongo Annabel
2009-01-08 20:05:52 UTC
Permalink
Did you point your environment variable "JAVA_HOME" to that new version?




________________________________
From: lemaitva <***@gmail.com>
To: ***@netbeans.org
Sent: Thursday, January 8, 2009 1:22:39 PM
Subject: [nbusers] Error on build : "javac: invalid target release: 1.6"

I am running a java program using NetBeans and the build.xml file I am using needs the 1.6 version of Java applications (But, as indicated in the subject I got an error concerning the version)



I installed the 1.6 version of JDK, changed the source in the project proprieties to "JDK6" but I still have the same error.



What should I do ?
lemaitva
2009-01-08 20:33:55 UTC
Permalink
I just did it, still doesn't work.
lemaitva
2009-01-08 21:23:15 UTC
Permalink
I found a way to solve it : change the java platform default version :

For those who have the same problem, go to where NetBeans is installed (C:\Program Files\NetBeans on windows) then go to etc and edit netbeans.conf. Then change the path to the default version.



It worked for me.

Loading...