Eclipse 中的离线 Java API 文档?
是否有集成任何其他离线方式来获取 Java API 文档?
Is there an integration of any other off line way to get the Java API docs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
是否有集成任何其他离线方式来获取 Java API 文档?
Is there an integration of any other off line way to get the Java API docs?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
如果您的开发计算机上没有 Internet 连接,或者您想要停止访问文档的 Web 流量,则可以将文档存储在本地硬盘上。
下载
标题下显示的链接。Window
菜单,然后选择Preferences
。jre
,然后单击已安装的 JRE
。java
的术语,或其他术语,例如jre1.8.0_181
。标准虚拟机
。编辑
按钮。JRE 系统库
部分中,选择以rt.jar
结尾的库,然后单击Javadoc Location...
按钮。存档中的Javadoc
单选按钮。存档路径
字段中,输入或浏览
您的完整文档路径(例如/home/docs/jdk-8u181-doc.zip
) 。存档内的路径
字段中,输入或浏览
以查找api/index.html
文件的位置(例如docs/api )。
验证
按钮以确保所有设置均正确。OK
按钮,然后单击Finish
按钮,最后单击Apply &关闭按钮。您的文档现已链接到您指定的文件。
If you have no internet connection on your development machine, or if you want to stop the Web traffic for accessing the documentation, you can store the documentation on your local hard drive.
Download
header.Window
menu, then selectPreferences
.jre
, and then clickInstalled JREs
.java
, or another term likejre1.8.0_181
.Standard VM
.Edit
button.JRE system libraries
section, select the library ending withrt.jar
, and click theJavadoc Location...
button.Javadoc in archive
radio button.Archive path
field, enter orBrowse
for your full documentation path (e.g./home/docs/jdk-8u181-doc.zip
).Path within archive
field, enter orBrowse
for the location of theapi/index.html
file (e.g.docs/api
).Validate
button to ensure everything is set correctly.OK
button, then theFinish
button, and finally theApply & Close
button. Your documentation is now linked to the file you specified.只是一个快速贡献:
我没有选择 7“存档中的 Javadoc”,而是将 javadoc 位置路径 (URL) 更改为我的目录,我在其中解压缩了文档。
希望有帮助!
Just a quick contribution:
Instead of selecting 7 "Javadoc in archive", I changed the javadoc location path (URL) to my directory, where I have unzipped my doc.
Hope its help!!!
这对我有用(Java 8):
转到您的 JDK 安装。 (
C:\Program Files\Java\jdk1.8.0_66
对我来说)。解压
src.zip
文件(对我来说变成C:\Program Files\Java\jdk1.8.0_66\src\
)。在 Eclipse 编辑器窗口中:
CTRL + 单击
java.lang
库类。 (类似于String
)。Eclipse 会抱怨
未找到源
并告诉您没有源。点击
附加源
->外部位置
->外部文件夹
。找到您的源文件夹(
C:\Program Files\Java\jdk1.8.0_66\src\
对我来说)。点击
确定
->确定
。享受。
This worked for me (Java 8):
Go to your JDK installation. (
C:\Program Files\Java\jdk1.8.0_66
for me).Unzip the
src.zip
file (becomesC:\Program Files\Java\jdk1.8.0_66\src\
for me).In the Eclipse editor window:
CTRL + Click
on ajava.lang
library class. (something likeString
).Eclipse will complain
Source not found
and tell you that you don't have the source.Click
Attach source
->External Location
->External Folder
.Find your source folder (
C:\Program Files\Java\jdk1.8.0_66\src\
for me).Click
OK
->OK
.Enjoy.