1. Target Operating Environments In order to remain current, each Eclipse release targets reasonably current operating environments. Most of the Eclipse SDK is "pure" Java code and has no direct dependence on the underlying operating system. The chief dependence is therefore on the Java Platform itself. Portions of the Eclipse SDK (including the RCP base, SWT, OSGi and JDT core plug-ins) are targeted to specific classes of operating environments, requiring their source code to only reference facilities available in particular class libraries (e.g. J2ME Foundation 1.0, J2SE 1.3 and 1.4, etc.). 所以 它是用自带的complier
简单的说 eclipse的JDT自带compilerhttp://www.eclipse.org/jdt/core/index.phpJDT Core is the Java infrastructure of the Java IDE. It includes: * An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler. In particular, it allows to run and debug code which still contains unresolved errors. * A Java Model that provides API for navigating the Java element tree. The Java element tree defines a Java centric view of a project. It surfaces elements like package fragments, compilation units, binary classes, types, methods, fields. * A Java Document Model providing API for manipulating a structured Java source document. * Code assist and code select support. * An indexed based search infrastructure that is used for searching, code assist, type hierarchy computation, and refactoring. The Java search engine can accurately find precise matches either in sources or binaries. * Evaluation support either in a scrapbook page or a debugger context. * Source code formatter
它内置了一个Eclipse JDT编译器,它可以在不需要JDK,但必须要JRE
eclipse只是IDE集成开发环境,并没有自带jdk
In order to remain current, each Eclipse release targets reasonably current operating environments. Most of the Eclipse SDK is "pure" Java code and has no direct dependence on the underlying operating system. The chief dependence is therefore on the Java Platform itself. Portions of the Eclipse SDK (including the RCP base, SWT, OSGi and JDT core plug-ins) are targeted to specific classes of operating environments, requiring their source code to only reference facilities available in particular class libraries (e.g. J2ME Foundation 1.0, J2SE 1.3 and 1.4, etc.). 所以
它是用自带的complier
然后他们就简单地在 左右各加一个空格了事,导致中间有段时期,贴子中所有的空格都变成3个,网友怨声载道。
现在,又换回来了,还是原样,我靠!
eclipse的JDT自带compilerhttp://www.eclipse.org/jdt/core/index.phpJDT Core is the Java infrastructure of the Java IDE. It includes: * An incremental Java compiler. Implemented as an Eclipse builder, it is based on technology evolved from VisualAge for Java compiler. In particular, it allows to run and debug code which still contains unresolved errors.
* A Java Model that provides API for navigating the Java element tree. The Java element tree defines a Java centric view of a project. It surfaces elements like package fragments, compilation units, binary classes, types, methods, fields.
* A Java Document Model providing API for manipulating a structured Java source document.
* Code assist and code select support.
* An indexed based search infrastructure that is used for searching, code assist, type hierarchy computation, and refactoring. The Java search engine can accurately find precise matches either in sources or binaries.
* Evaluation support either in a scrapbook page or a debugger context.
* Source code formatter
其实,没有javac一样可以编译。看一下sun的java的source就知道:
javac.exe里面是调用com.sun.tools.javac.Main这个类的。
也就是说,java com.sun.tools.javac.Main ...一样可以把java变成class。
当然com.sun.tools.javac.Main这个类在tools.jar里面,没有配置好环境是无法执行的。
sdfsdf
sdfsdf
sdfsdf
sdfsdf
sdfsdf
[/code]