Offline Java Documentation [closed]

丶灬走出姿态 提交于 2019-12-04 07:59:44

问题


I've finally gotten around to learning Java and am looking for some documentation for Java that I can download and read offline. Something like Sun's stuff but zipped up or as a PDF or CHM.

I'm using Eclipse so something that integrates with that would be nice. It already seems to have some of what I want somewhere (the javadoc stuff) but I don't see how to search it and I'm not seeing a language ref.


回答1:


Full Documentation in Windows Help Format http://javadoc.allimant.org/




回答2:


I'm not sure that I fully understand your question.

If you are interested in materials about learning Java (rather than API references), you can download all of it as a zip file. It will be multiple HTML files, but I've never seen a real problem with browsing them unless I wanted a printout. If you need a printout of the tutorial, just get the tutorial in book form.

If you are looking for the JavaDocs for a specific API, and you use Eclipse, your best bet might be to use the version of Eclipse that is specific for Java and comes packaged with the JDK source code (or just download the source code). You can then read the documentation of methods through different views like the Java Browsing view.




回答3:


Once you setup Eclipse for Java development using the Sun JDK in Preferences->Java->Installed JREs, you can attach the Sun javadoc archive file to the JRE in question. Just make sure that you pick the JDK installation directory as the root of the JRE. Eclipse will automatically attach to the src archive there. Then when you make a Java project, you can use the package explorer to browse through the classes and read the javadoc by expanding the JRE System Library entry in your new project. The majority of the api is in the rt.jar.




回答4:


Also you can try Apatite which helps in learning the vast API by association.I don't think its available offline though.




回答5:


Read the JavaDocs. Especially the java.util.Collections framework. The core Java library is extremely well documented for the most part.

I also tend to browse the source to get a good understanding of how things work. You should java the src.zip set up so you can browse inside JDK classes. It will also teach you good design; learn from the masters!

Some very useful commands to memorize in eclipse:

Ctrl-Shift-T Open Type: search as you type a class name, select it to jump directly to it. You do not need to know the package, it searches all classes by their simple names.

F4 Open Type Hierarchy. With the cursor on any class reference in source or on a class in the package explorer, hitting F4 will open a type hierarchy.

Ctrl-T Quick type hierarchy. It's like F4 but opens a quick popup browser. Very convenient. My favorite use is to place it on an interface, and Ctrl-T will list all implementing classes.



来源:https://stackoverflow.com/questions/449558/offline-java-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!