java编译器的源代码在哪里? [英] Where is the source code for the java compiler?

查看:38
本文介绍了java编译器的源代码在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找 Sun 标准 java 编译器的源代码,javac.

jdk1.6.0_07 有几个类是相关的,但都是接口(java.lang.Compilerjavax.tools.JavaCompiler).com.sun.mirror.*com.sun.source.* 下还有一些包,它们似乎是表示java抽象语法树的接口.>

但是我找不到编译器的源代码——有人知道它在哪里吗?

解决方案

检查此站点 Java 编程语言编译器 (javac)组.源代码位于 Mercurial 存储库中.

jdk7/tl/langtools(适用于 JDK 1.7)

jdk6/jdk6/langtools(适用于 JDK 1.6)

在我链接到的两个站点的标题中,可以找到源文件的下载链接(bz2、zip 和 gz 格式)

srcshareclassescomsun oolsjavac

I'm looking for the source code of Sun's standard java compiler, javac.

jdk1.6.0_07 has a few classes that are related, but they are interfaces (java.lang.Compiler and javax.tools.JavaCompiler). There's also some packages under com.sun.mirror.* and com.sun.source.*, which seem to be interfaces for representing the java abstract syntax tree.

But I can't find the compiler source - anyone know where it is?

解决方案

Check this site The Java programming-language compiler (javac) group. The sources are in the Mercurial repositories.

jdk7/tl/langtools (for JDK 1.7)

jdk6/jdk6/langtools (for JDK 1.6)

In the header of the two sites I linked to you find download links for the sources (in bz2, zip and gz format)

There you have the sources in srcshareclassescomsun oolsjavac

这篇关于java编译器的源代码在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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