如何将 JavaHelp 包含到我的 Eclipse 项目中?

发布于 2024-07-14 08:35:32 字数 500 浏览 3 评论 0原文

我正在编写一些需要绑定帮助内容系统的应用程序。 我遇到了 JavaHelp ,它似乎非常适合我的需要。

我遇到的问题是,当您下载 JavaHelp 时,它带有自己的 bin 文件夹,看起来您应该单独使用。 不过,我非常确定,如果我只复制一些 JAR 文件,我应该能够将它们放在 Eclipse 的层次结构中并在项目中使用它。

我需要复制哪些 JAR 才能在我的应用程序中使用 JavaHelp?

更新

我让 JavaHelp 工作得相当容易。 不过,我在使用内置 Eclipse 帮助时遇到了问题。 但我很欣赏你们的回答!

如果有人有兴趣了解如何将 JavaHelp 添加到您的项目中(不必特定于 Eclipse),我将非常乐意在这里提供答案。

I am writing some applications that require to have a Help Contents system tied to it. I came across JavaHelp which seems perfect for what I need.

The issue I am having is that when you download JavaHelp, it comes with its own bin folder which looks like you are suppose to use separately. However, I am pretty sure if I just copy some of the JAR files I should be able to just place them in the hierarchy in my Eclipse and use it in the project.

What JAR(s) would I need to copy so I can use JavaHelp in my application?

Update

I got JavaHelp working rather easily. I had issues with the built in Eclipse Help though. But I appreciate both of your answers!

If anyone is interested in knowing how to add JavaHelp to your project (doesn't have to be Eclipse specific), I will be more than happy to provide the answer here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薄荷梦 2024-07-21 08:35:32

JavaHelp README 详细介绍了可再发行的 jar 文件,这些文件是下载中提供。 选择适合您需要的 jar 并将其添加到您的 Eclipse 项目中。

The JavaHelp README details the redistributable jar files that are supplied in the download. Select the jar that suits your needs and add it to your Eclipse project.

沐歌 2024-07-21 08:35:32

虽然 JavaHelp 是一个很好的 API,但 Eclipse 有自己的帮助 API,并且(IMO)对于基于 SWT 的应用程序来说这是一个更好的选择。 请参阅这篇developerworks 文章,了解如何使用 Eclipse 帮助系统开发帮助。

如果您实际上正在创建一个 swing 应用程序,并且想要使用它打包 java 帮助,则需要创建帮助文档(帮助主题、帮助集文件、映射文件、目录、索引、全文搜索数据库),然后将这些文件打包到 jar 中以便与您的应用程序一起分发。 请参阅 JavaHelp 用户指南 了解详细信息。

要从 Eclipse IDE(以及运行时的应用程序)运行帮助查看器,您所需要的只是 JavaHelp 发行版中的 jar 文件 jhall.jar。

While JavaHelp is a good api, Eclipse has its own api for help, and (IMO) it's a much better option for SWT based applications. See this developerworks article on developing help using the Eclipse help system.

If you're actually creating a swing application, and want to package java help with it, you'll need to create the help documents (help topics, helpset file, map file, TOC, index, full-text search db) and then package those files into a jar for distribution with your application. See the JavaHelp Users Guide for details.

For running the help viewer from the Eclipse IDE (and from your application at runtime), all you need is the jar file jhall.jar from the JavaHelp distribution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文