blob: d7c6979fcf4744d845249362306e2d998ccee50c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<title>Java builder</title>
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</head>
<body>
<h1>Java builder</h1>
<p>The Java builder builds Java programs using a compiler that implements the Java Language Specification.&nbsp;
The Java builder can build programs incrementally as individual Java files are saved.</p>
<p>Problems detected by the compiler are classified as either warnings or errors. The existence of a warning does not affect the execution of the program; the code executes as
if it were written correctly. Compile-time errors (as specified by the Java Language Specification) are always reported as errors by the Java compiler. For some other types of
problems you can, however, specify if you want the Java compiler to report them as warnings, errors or to ignore them. To change the default settings, use the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.ProblemSeveritiesPreferencePage)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Goto the Java compiler preference page">
<span class="control">Java &gt; Compiler &gt; Errors/Warnings</span></a>
preference page.</p>
<p>The Java compiler can create CLASS files even in presence of compilation errors. However, in the case of serious errors (for example, references to inconsistent binaries,
most likely related to an invalid build path), the Java builder does not produce any CLASS
files.</p>
<p><img border="0" src="../images/ngrelc.png" alt="Related concepts" ></p>
<p>
<a href="cbuildcp.htm">Build classpath</a><br></p>
<p><img src="../images/ngrelr.png" alt="Related reference" border="0" ></p>
<p>
<a href="../reference/ref-123.htm">Java Build Path properties</a><br>
<a href="../reference/ref-preferences-compiler.htm">Java Compiler preferences</a></p>
</body>
</html>