请输入您要查询的百科知识:

 

词条 Javac
释义

  1. History

  2. See also

  3. References

  4. External links

{{about|Oracle's Java compiler|a general article about Java compilers|Java compiler}}{{lowercase|title=javac}}{{Infobox software
| name = javac
| caption = Java Compiler
| developer =
| latest release version =
| latest release date =
| programming language = Java[1]
| operating system = Cross-platform
| genre = Compiler
| license = GNU General Public License
| website = {{URL|http://www.oracle.com/technetwork/java/javase/downloads/index.html}}
}}

javac (pronounced "java-see") is the primary Java compiler included in the Java Development Kit (JDK) from Oracle Corporation. Martin Odersky implemented the GJ compiler, and his implementation became the basis for javac[2].

The compiler accepts source code conforming to the Java language specification (JLS) and produces Java bytecode conforming to the Java Virtual Machine Specification (JVMS).

javac is itself written in Java. The compiler can also be invoked programmatically.[3]

History

On 13 November 2006, Sun's HotSpot Java virtual machine (JVM) and Java Development Kit (JDK) were made available[4] under the GPL license.[5]

Since version 0.95, GNU Classpath, a free implementation of the Java Class Library, supports compiling and running javac using the Classpath runtime — GNU Interpreter for Java (GIJ) — and compiler — GNU Compiler for Java (GCJ) — and also allows one to compile the GNU Classpath class library, tools and examples with javac itself.[6]

See also

{{Portal|Free and open-source software|Java (programming language)}}
  • Java compiler – for a general presentation of Java compilers, and a list of other existing alternative compilers.
  • Java Platform
  • OpenJDK

References

1. ^{{cite web |url=http://www.lextrait.com/Vincent/implementations.html |title=The Programming Languages Beacon, v10.0 |first=Vincent |last=Lextrait |date=January 2010 |accessdate=14 March 2010 |deadurl=yes |archiveurl=https://archive.is/20120530/http://www.lextrait.com/Vincent/implementations.html |archivedate=30 May 2012 |df= }}
2. ^{{cite web|url=https://docs.oracle.com/javase/specs/jls/se7/html/jls-0-preface3.html|title=Preface to Java Generics}}
3. ^"[...]an application can access javac programmatically."{{cite web|url=http://www.javaworld.com/javatips/jw-javatip131.html?page=1|title=Java Tip 131: Make a statement with javac!|author=Shawn Silverman|publisher=JavaWorld.com|date=2002-08-30|accessdate=2008-08-09}}
4. ^Sun opens Java (feature story)
5. ^[https://wiki.openjdk.java.net/display/HotSpot/Main Sun's OpenJDK Hotspot page]
6. ^"This release supports compiling and running the GPL OpenJDK javac compiler[...]"{{cite web|url=https://www.gnu.org/software/classpath/announce/20070423.html|title=GNU Classpath 0.95 Announcement}}

External links

  • The Compiler Group
  • JSR 199 Java Compiler API Java Specification Request for invoking the Java compiler from a Java program
  • Mercurial repository
  • Java Language Specification

1 : Java compilers

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/29 22:22:26