最近做了个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系统的达人有何见教,我应该从哪方面去排查原因?

解决方案 »

  1.   

    搞定了,自己结贴给自己分了,想要结果的朋友可以去我发表在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 systemNote: 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