I have installed two jdks - jdk 1.5 and jdk 1.8.
I have following Ant build.xml config file :
<target name="compileCustomSrc">
<javac srcdir="src" destdir="build/classes" source="1.5" target="1.5" >
<classpath>
<fileset dir="C:/lib/">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
</target>
Before installing jdk1.8, Ant invoked from Eclipse compiled all sources successful. But now, I have following error message:
Class not found: javac1.8
My JAVA_HOME and JRE_HOME:
JAVA_HOME = C:Program Files (x86)Javajdk1.5.0_16
JRE_HOME = C:Program Files (x86)Javajre1.5.0_16
and set in Eclipse JRE to 1.5. Does Java 1.8 set some configs during installation?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…