Java IDE 和构建工具是否依赖于 `javac` 和 `java` 命令? [英] Do Java IDEs and build tools rely on `javac` and `java` commands?

查看:38
本文介绍了Java IDE 和构建工具是否依赖于 `javac` 和 `java` 命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 Scala 编译器和解释器

为什么用 Scala 或 Java 编写的工具(IDE 或构建工具,例如 sbt)会围绕编译器和字节码解释器 API 使用 shell 包装脚本 scalacscala,他们什么时候可以使用编译器和字节码解释器 API?

Why would a tool (IDE or build tool e.g. sbt) written in Scala or Java use the shell wrapper scripts scalac and scala around the compiler and bytecode interpreter APIs, when they can use the compiler and bytecode interpreter APIs?

对于 Java,Java IDE 和构建工具是否也以与 Scala 类似的方式工作?或者,Java IDE 和构建工具是否依赖于 javacjava 命令?

In case of Java, do Java IDEs and build tools also work in similar way as Scala's? Or, do Java IDEs and build tools rely on javac and java commands?

谢谢.

推荐答案

那要看是哪个ide.Eclipse 有它自己的内部编译器,所以它不使用 oracles javac 编译器.

That depends on which ide. Eclipse have it's own internal compiler, so it don't use oracles javac compiler.

但它确实使用标准的 java 运行时环境 (jre) 来运行 java 软件.包括使用那个 jre 的标准库.

But it does use a standard java runtime environment(jre) to run java software. Including using the standard library from that jre.

这篇关于Java IDE 和构建工具是否依赖于 `javac` 和 `java` 命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆