如何在Eclipse项目中包含JavaHelp?

时间:2021-12-30 20:44:24

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.

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

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.

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

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

我需要复制哪些JAR,以便在我的应用程序中使用JavaHelp?

Update

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

我让JavaHelp很容易工作。我遇到了内置Eclipse帮助的问题。但我很欣赏你的两个答案!

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.

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

2 个解决方案

#1


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.

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

#2


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.

虽然JavaHelp是一个很好的API,但Eclipse有自己的api求助,而且(IMO)它是基于SWT的应用程序的更好的选择。请参阅这篇关于使用Eclipse帮助系统开发帮助的developerworks文章。

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.

如果你实际上正在创建一个swing应用程序,并希望用它打包java帮助,你需要创建帮助文档(帮助主题,helpset文件,映射文件,TOC,索引,全文搜索db)然后将这些文件打包到jar中以便随应用程序一起分发。有关详细信息,请参阅“JavaHelp用户指南”。

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.

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

#1


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.

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

#2


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.

虽然JavaHelp是一个很好的API,但Eclipse有自己的api求助,而且(IMO)它是基于SWT的应用程序的更好的选择。请参阅这篇关于使用Eclipse帮助系统开发帮助的developerworks文章。

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.

如果你实际上正在创建一个swing应用程序,并希望用它打包java帮助,你需要创建帮助文档(帮助主题,helpset文件,映射文件,TOC,索引,全文搜索db)然后将这些文件打包到jar中以便随应用程序一起分发。有关详细信息,请参阅“JavaHelp用户指南”。

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.

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