| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| <head> |
| <meta name="copyright" content= |
| "Copyright (c) IBM Corporation and others 2000, 2011. 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=utf-8" /> |
| <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" type= |
| "text/javascript"> |
| |
| </script> |
| </head> |
| <body> |
| <h1> |
| Java Builder |
| </h1> |
| <p> |
| The Java builder builds Java programs using its own compiler (the Eclipse Compiler for Java) |
| that implements the Java Language Specification. The Java builder can build programs |
| incrementally as individual Java files are saved. Note that the Eclipse Compiler for Java can |
| also be invoked using Ant as described in the <a href="../tasks/task-ant_javac_adapter.htm#"><b>Using the ant javac adapter</b></a> section.<br /> |
| |
| </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.svg" alt= |
| "Goto the Java compiler preference page" /> <span class="control">Java > Compiler > |
| 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> |
| |
| <h3 class="related">Related concepts</h3> |
| <a href="concept-build-classpath.htm">Build classpath</a><br /> |
| |
| <h3 class="related">Related tasks</h3> |
| <a href="../tasks/task-using_batch_compiler.htm">Using the batch compiler</a><br /> |
| <a href="../tasks/task-ant_javac_adapter.htm">Using the ant javac adapter</a><br /> |
| <a href="../tasks/task-suppress_warnings.htm">Excluding warnings using SuppressWarnings</a><br /> |
| |
| <h3 class="related">Related references</h3> |
| <a href="../reference/ref-properties-build-path.htm">Java build path properties</a><br /> |
| <a href="../reference/preferences/java/ref-preferences-compiler.htm">Java compiler |
| preferences</a> |
| </body> |
| |
| </html> |