clojure.java.javadoc helps Clojure programmers find Java API documentation without leaving the REPL. It resolves documentation for a value’s class and opens the result in the system browser. section 22.0 section 22.10
The namespace combines lookup with configurable documentation locations:
- javadoc opens documentation for a class or object, such as a string, in the native browser. section 22.10
- add-remote-javadoc associates package prefixes with online Javadoc roots; add-local-javadocs supports local documentation. section 22.10 section 23.15
- The lookup database uses *local-javadocs* and *remote-javadocs*, while *core-java-api* identifies the core Java documentation URL. section 23.15
Register documentation for the running Java version
Require the namespace, derive a Java-version-specific Oracle URL, and register it for common Java package prefixes. This lets subsequent javadoc calls target a matching remote API rather than the old default. section 22.10
When no registered documentation matches, *feeling-lucky* can try a search-engine URL, although the historical Google behavior no longer works reliably. Bind *feeling-lucky-url* to another service when needed; disabling the fallback produces a clear lookup failure. section 23.15
