Software:javac

From HandWiki
Short description: Java compiler

javac
Written inJava[1]
Operating systemCross-platform
TypeCompiler
LicenseGNU General Public License
Websitewww.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

  • Java compiler – for a general presentation of Java compilers, and a list of other existing alternative compilers.
  • Java Platform
  • OpenJDK

References

  1. Lextrait, Vincent (January 2010). "The Programming Languages Beacon, v10.0". Archived from the original on 30 May 2012. https://archive.today/20120530/http://www.lextrait.com/Vincent/implementations.html. Retrieved 14 March 2010. 
  2. "Preface to Java Generics". https://docs.oracle.com/javase/specs/jls/se7/html/jls-0-preface3.html. 
  3. Silverman, Shawn (2002-08-30). "Java Tip 131: Make a statement with javac!". JavaWorld. https://www.infoworld.com/article/2077497/java-tip-131--make-a-statement-with-javac-.html. Retrieved 2020-07-14. "[...]an application can access javac programmatically." 
  4. "Sun opens Java (feature story)". Sun Microsystems, Inc.. 13 November 2006. http://www.sun.com/2006-1113/feature/story.jsp. 
  5. Sun's OpenJDK Hotspot page
  6. "This release supports compiling and running the GPL OpenJDK javac compiler[...]" site visit (narrow); open slide( "GNU Classpath 0.95 Announcement". https://www.gnu.org/software/classpath/announce/20070423.html. 

External links