Questions tagged «classnotfound»

12
找不到javac1.8类
我已经安装了两个jdk-jdk 1.5和jdk 1.8。我有以下Ant build.xml配置文件: <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> 在安装jdk1.8之前,从Eclipse调用的Ant成功编译了所有源。但是现在,我有以下错误消息: 找不到类:javac1.8 我的JAVA_HOME和JRE_HOME: JAVA_HOME = C:\ Program Files(x86)\ Java \ jdk1.5.0_16 JRE_HOME = C:\ Program Files(x86)\ Java \ jre1.5.0_16 并在Eclipse JRE中将其设置为1.5。Java 1.8在安装过程中会设置一些配置吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.