Failed to create URL from jar错误,请教做过javahelp帮助系统的达人。

little_fairycat 2007-12-25 09:52:14
最近做了个javahelp系统,才学着做的,基本的目录,索引搜索什么都没有问题,就是全文搜索出问题了,利用jhindexer生成了搜索表后加入到help系统中试运行,查找的时候出现了
Failed to create URL from jar:file:/D:/porject/JavaHelpPorject/HelpDemo/lib/AppHelp.jar!/AppHelp.hs|D:/工程/Help/中文版/AppPlatform/AppHelp/terminal.htm
这样的错误,看上去是已经找到了那个页面但是好像不能返回正确的url,不知道各位做过javahelp系统的达人有何见教,我应该从哪方面去排查原因?
...全文
154 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
little_fairycat 2007-12-25
  • 打赏
  • 举报
回复
搞定了,自己结贴给自己分了,想要结果的朋友可以去我发表在http://forum.java.sun.com/thread.jspa?messageID=10029731的贴看解决办法。原文如下,懒得翻译了。
Yesterday I met with the same problem with you, and I read the Javahelp_Guide for several times and today I solve the problem. I reply the topic and want to share the experience with friends.
First cofirm that you have created the html pages, .hs file, index file, TOC file, map file, and be sure they all work well. We assume you put the last 4 files in D:\HelpFile, and the html pages in D:\HelpFile\HelpPage
Now we come to the second step -- generate the Full-Text Search Database.
1. Open "Start" -> "Run" in windows, and input "cmd" command.
2. Switch to your help folder, here we assume it as D:\HelpFile
3. Find the path of the jhindexer in the javahelp\bin folder of the JavaHelp system release, e.g E:\JavaHelp\bin
4. Input the following command in cmd.exe you just open in step 1:
E:\JavaHelp\bin\jhindexer HelpPage
5. you'll find a new folder named JavaHelpSearch generated in the current folder D:\HelpFile
6. Pack all the files in folder D:\HelpFile as a jar file and you can use it in your system

Note: 1. avoid asian character in your folder path, though there's no obvious reason but we should avoid possible error.
2. Full-Text Search need no programming in your program, just do it as the steps ibid.
release: Javahelp 2.0.05
Operation System: Windows XP
胡矣 2007-12-25
  • 打赏
  • 举报
回复
help

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧