Javadoc
oracle.com
What it is
Javadoc creates HTML API documentation from Java source files and is installed with the Java Development Kit (JDK). Its standard doclet describes public and protected Java types and members, including classes, interfaces, constructors, methods, and fields. It can process packages, individual source files, or both, with an option to include subpackages recursively. Alternate doclets can change the content and format of the generated output, while taglets add support for custom tags in documentation comments. The standard doclet includes DocLint to help identify common comment problems, but DocLint does not check conformance or repair errors. Oracle cautions that generated output may pose issues if it is non-conformant or contains executable content such as JavaScript. JDK 25 downloads are listed for Linux, macOS, and Windows. JDK 25 binaries are free under Oracle No-Fee Terms and Conditions through September 2028; later updates use a license that may require fees for production use beyond limited free grants.
Spec sheet
- Purpose
- Javadoc generates HTML API documentation pages from Java source files.Read 4 Oct 2026 · docs.oracle.com
- Support
- Oracle directs customers with active support contracts to My Oracle Support for technical questions and service requests.Read 4 Oct 2026 · oracle.com
- Headquarters
- Austin, Texas, USARead 28 Sep 2026 · oracle.com
- Founded
- 1977Read 28 Sep 2026 · oracle.com
- Custom output
- Javadoc supports alternate doclets that define the content and format of generated output.Read 4 Oct 2026 · docs.oracle.com
- Custom tags
- Custom tags in documentation comments are supported through taglets.Read 4 Oct 2026 · docs.oracle.com
- Inputs
- Javadoc can document whole packages, individual Java source files, or both, and can recursively include subpackages.Read 4 Oct 2026 · docs.oracle.com
- JDK inclusion
- The Javadoc tool is installed with the Java Development Kit (JDK).Read 4 Oct 2026 · docs.oracle.com
- License limit
- Oracle says JDK 25 updates are free under NFTC through September 2028; subsequent updates use the Java SE OTN License, which may require a fee for production use beyond its limited free grants.Read 4 Oct 2026 · oracle.com
- Maker founding
- Oracle says it was founded in 1977.Read 4 Oct 2026 · investor.oracle.com
- Operating systems
- Oracle lists JDK 25 downloads for Linux, macOS, and Windows.Read 4 Oct 2026 · oracle.com
- Output safety
- Oracle advises users to be aware of problems that may arise from non-conformant output or output containing executable content such as JavaScript.Read 4 Oct 2026 · docs.oracle.com
- Standard output
- The standard doclet generates HTML pages describing public and protected types and members, including classes, interfaces, constructors, methods, and fields.Read 4 Oct 2026 · docs.oracle.com
- Validation
- The standard doclet provides DocLint to help detect common problems in documentation comments, but does not validate their conformance or correct errors.Read 4 Oct 2026 · docs.oracle.com
Plans and prices
Strong points and limits
Strong points
- Included with the Java Development Kit.
- Processes packages or individual source files.
- Alternate doclets can define output content and format.
- Taglets support custom documentation-comment tags.
Limits
- DocLint does not verify conformance or fix errors.
- Later JDK updates may require production-use fees.
- Executable output can pose safety concerns.
Who it suits
Javadoc suits Java developers who need to generate API reference pages from source code and customize their documentation output. Its JDK inclusion and package-level processing support use within Java development workflows.
Javadoc in depth
Read the full write-up
Overview
Javadoc turns Java source files into HTML API references, making it a practical choice for Java teams that want documentation alongside their JDK-based development workflow. Its strength is producing conventional reference pages with room for custom output; it is not a substitute for an interactive API portal or a tool that repairs documentation errors.
Key features
The standard doclet describes public and protected Java types and members, including classes, interfaces, constructors, methods, and fields. It can process packages, individual source files, or both, and recursively include subpackages. That flexibility suits both project-wide reference builds and narrower documentation tasks.
Alternate doclets can change the content and format of generated pages, while taglets let teams add custom tags to documentation comments. Javadoc supports code samples, but it does not import OpenAPI or provide an interactive API reference. Choose it for Java source-based reference material, not when readers need to explore or try APIs in a browser.
DocLint can catch common problems in comments, but it does not verify full conformance or correct errors. Teams must still review and fix documentation, and take care with non-conformant output or generated pages containing executable content such as JavaScript, which Oracle identifies as potential sources of problems.
Pricing
Javadoc (included with JDK 25): free. The tool is installed with the JDK, and JDK 25 binaries are free under Oracle No-Fee Terms and Conditions through September 2028. This makes it a straightforward fit for Java developers already using the JDK, without a separate Javadoc plan or price.
The free terms have a boundary: after September 2028, JDK updates use the Java SE OTN License, which may require a fee for production use beyond its limited free grants. Organizations planning to stay on later updates for production should assess those terms. Oracle directs customers with active support contracts to My Oracle Support for technical questions and service requests.
Platforms
Oracle lists JDK 25 downloads for Linux, macOS, and Windows. Javadoc is installed with the JDK. Its supported operating systems also include UNIX, while the product’s deployment model is both and its hosting model is self-hosted, so it belongs in a locally managed development and documentation workflow rather than a hosted service.
Who it's for
Javadoc is best for Java library and application teams that want generated API references tied directly to source code, with the option to tailor page output or documentation tags. It is less appropriate for teams that need an interactive reference, OpenAPI import, or automatic validation and correction. Its clustering, admin console, and container support may matter to organizations managing deployment environments, but do not change its central role as a Java documentation generator.
Pros and cons
Pro: Included with the JDK, so Java teams can generate reference pages without adding a separate documentation product.
Pro: Alternate doclets, taglets, and recursive package processing support customized output across a codebase.
Con: DocLint only identifies common comment problems; teams remain responsible for conformance checks and corrections.
Con: No OpenAPI import or interactive API reference, making it a poor fit for browser-based API exploration.
Con: Free JDK 25 updates under Oracle's NFTC terms end after September 2028; later production use may incur fees under the OTN License.
Alternatives
Doxygen is a free option for teams looking for documentation generation across Windows, Linux, and macOS. For a wider API documentation shortlist, see API Documentation Tools; Profiling Software is another directory category.
Scalar suits readers comparing freemium API documentation products, with a free tier capped at three APIs, one SDK of up to 25 endpoints, one editor seat, and 50 Agent Scalar credits. Fern is another freemium choice; its free tier includes one site, up to 10 team members and 1,000 pages, plus monthly page-generation and AI-credit limits.
PilotDocs offers web-based freemium plans, including a $49 a month Starter plan with 10 projects and unlimited API endpoints, guides, and tutorials. Swagger Codegen is a free, open-source alternative that generates API clients, server stubs, and documentation from OpenAPI specifications, making it a better match for projects centered on OpenAPI.
ApiNotes has a free tier for one public API, a 10-release changelog, up to 25 subscribers, and one team member. pdoc is a free alternative for readers comparing documentation tools across Linux, macOS, Windows, self-hosted, and web platforms. Theneo is a freemium option for readers considering API documentation with web, extension, or self-hosted platforms.
Verdict
Choose Javadoc if you maintain Java code and want JDK-included HTML API references that can be adapted with doclets and taglets. Its source-linked workflow is the main reason to use it; look elsewhere if you need interactive API exploration, OpenAPI import, or stronger documentation validation, and review Oracle's later-update licensing terms before committing to a long production lifecycle.
Verdict
Javadoc covers standard Java API documentation and allows alternate output formats through doclets. Review its validation limits and Oracle's stated licensing terms for later JDK updates.
Where Specifiction places it
- Profiling Software#9 of 297.9
- API Documentation Tools#10 of 278.0