我的电脑只装JRE,没装JDK,也就没有javac了但是Eclipse可以编译,它是用自带的complier吗?

解决方案 »

  1.   

    你不装JRE,就不能跑起来Eclipse,你当那个是VS2005啊?
      

  2.   

    如果有连带TOMCAT
    它内置了一个Eclipse JDT编译器,它可以在不需要JDK,但必须要JRE
      

  3.   

    Eclipse默认使用jre也可以设置成jdk,在jre中包含javac的
      

  4.   

    eclipse会用到外部的jdk,一般会自己找到jdk的安装路径,也可以指定。
    eclipse只是IDE集成开发环境,并没有自带jdk
      

  5.   

    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
      

  6.   

    楼上理解错了吧,那句是说:Eclipse大部分不依赖操作系统,只依赖Java平台,部分的SDK(如RCP base, SWT, OSGi, JDT等)是针对操作系统环境的CSDN这帮猪头,我以前提过,将帖子中的空格都替换成 会导致英文无法换行,应该将“N(N>1)个空格替换成一个空格加上N-1个 ”
    然后他们就简单地在 左右各加一个空格了事,导致中间有段时期,贴子中所有的空格都变成3个,网友怨声载道。
    现在,又换回来了,还是原样,我靠!
      

  7.   

    简单的说
    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
      

  8.   

    恩,楼上细致!http://www.eclipse.org/downloads/moreinfo/compare.php除了给C/C++开发用的版本的eclipse外,几乎所有版本都带有JDT,看来,eclipse确实可以自己编译java。
      

  9.   

    很多初学者以为把java变成class必须要有javac.exe
    其实,没有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里面,没有配置好环境是无法执行的。
      

  10.   

    [code=输出]dfgdfg
    sdfsdf
    sdfsdf
    sdfsdf
    sdfsdf
    sdfsdf
    [/code]
      

  11.   

    我原来也以为必须要JDK呢 后来一个同事用JRE 也是可以的 看了楼上的大概也明白点原由了