내가 자바 6. 여기Eclipse가 Java 1.5에서 내 코드를 컴파일하지 않는 이유는 무엇입니까? 의
이클립스 3.5.2 및 JDK를 설치 한 이클립스 내 설치된 JRE를
alt text http://img806.imageshack.us/img806/3345/eclipsejres.jpg
내가 개미 빌드 파일을 컴파일하려고, 일부 보인다 이것과는 자바 1.5 지정과 같은 :
<target name="compile" depends="build-common, init" description="Compile files. ">
<javac srcdir="${src_dir}" destdir="${build_dir}" debug="true" target="1.5" source="1.5">
<classpath path="${tomcat_home}/lib/servlet-api.jar;${tomcat_home}/lib/log4j-1.2.15.jar;/usr/local/lib/portlet-api-1.0.jar;." />
</javac>
</target>
을하지만 컴파일 할 때, 콘솔 창에 다음과 같은 오류가 표시
compile:
[javac] Compiling 1 source file to H:\jephperro\portlets\build
[javac] javac: invalid target release: 1.5
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info
[javac] -nowarn Generate no warnings
[javac] -verbose ....
BUILD FAILED
H:\jephperro\portlets\CourseList-build.xml:25: Compile failed; see the compiler error output for details.
Total time: 531 milliseconds
Eclipse의 문제점은 무엇입니까?
Eclipse 컴파일러를 사용하여 천천히 마이그레이션하므로 전체 JDK가 아닌 JRE를 사용할 수 있습니다. –