I had java jdk 1.6 installed, and today installed jdk 1.7 becaused needed to compile new project. So changed JAVA_HOME from 1.6 path to 1.7 path and created project using jdk 1.7 when i tried to compile using ANT (build.xml) i got this error that cannot find javac1.7 class... cheked compiler (preferences-java-compiler) and it is 1.6(also there is 1.5 .1.4) but no 1.7 which I need. So, maybe someone knows solution for this problem? Thank You. sorr for bad english.
1
votes
1 Answers
2
votes
Be careful that :
- Only new versions of Eclipse support the JDK 1.7 (first Indigo versions couldn't)
- You have to change the used JRE in preferences/java/installedJRes too
Eclipse uses a specific compiler. They mention here what functions they added in Eclipse for the JDK1.7.
javaccommand work from the command line? And doesjavac -versionreturn the expected Java 1.7 path? - Roddy of the Frozen Peas