在java应用程序中调用帮助文件 [英] Call a help file in java application

查看:123
本文介绍了在java应用程序中调用帮助文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成了我的java应用程序。

我添加了一个 chm 帮助文件,但问题是如何打开它,怎么能我得到它的链接,无论jar文件运行的机器在哪里。

我试图使用命令

I just finished my java application.
I add a chm help file, but the problem is "how can I open it, how can I get its ? link wherever the machine which the jar file run from".
I tried to use the command

Runtime.getRuntime()。exec(hh.exe myhelpfile.chm);

它可以工作,但当我更改机器的链接时变得不正确,

it works but when I change the machine the link become incorrect,

我的chm文件

推荐答案

您是否尝试从其他计算机或同一台计算机访问该文件?如果从同一台计算机访问该文件,则在类路径中添加.chm文件。

Are you trying to access the file from another machine or the same machine? If accessing the file from same machine then add your .chm file in the classpath.

这篇关于在java应用程序中调用帮助文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆