jhindexer: Positions File Not Found
Hi Guys
New to JavaHelp but I've been hacking at the API for a couple of days now. If this is obvious then apologies in advance but I'd love to know the reason anyway.
Environ: jdk 1.3.0, Win2000
When I run
d:\jh1.1\javahelp\bin\jhindexer .\topics -verbose -logfile log.txt
I get the following output to the log:
File: 'topics\booking\Booking.html'
URL: 'topics/booking/Booking.html'
File: 'topics\options\StartUp.html'
URL: 'topics/options/StartUp.html'
File: 'topics\Overview.html'
URL: 'topics/Overview.html'
File: 'topics\searching\Searching.html'
URL: 'topics/searching/Searching.html'
Parse time: 1.633 s
java.io.FileNotFoundException: JavaHelpSearch\POSITIONS (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:64)
at java.io.FileInputStream.<init>(FileInputStream.java:95)
at com.sun.java.help.search.DocumentLists.<init>(DocumentLists.java:161)
at com.sun.java.help.search.DocumentLists.invert(DocumentLists.java:243)
at com.sun.java.help.search.DefaultIndexBuilder.close(DefaultIndexBuilder.java:103)
at com.sun.java.help.search.Indexer.compile(Indexer.java:228)
at com.sun.java.help.search.Indexer.main(Indexer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at com.zerog.lax.LAX.a([DashoPro-V1.2-120198])
at com.zerog.lax.LAX.<init>([DashoPro-V1.2-120198])
at com.zerog.lax.LAX.main([DashoPro-V1.2-120198])
The POSITIONS file that it is looking for is actually being created at the dir above JavaHelpSearch(i.e. where I'm running the command from), and as the failure has occurred during the index generation moving it to the correct directory still causes a runtime InvocationTargetException.
Any ideas why the POSITIONS file is being created in what I guess is the wrong place? Any ideas as to how to fix this?
Really puzzling over this now...

