jhindexer throws Exception

Hi,

I am trying to build a search index using jhindexer. However, when I try to run the indexer on my folder, I get the following exception:

Exception in thread "main" java.lang.IllegalAccessError: try to access class com

.sun.java.help.search.ConceptLocation from class com.sun.java.help.search.DefaultIndexBuilder

at com.sun.java.help.search.DefaultIndexBuilder.<init>(DefaultIndexBuilder.java:23)

at com.sun.java.help.search.Indexer.compile(Indexer.java:191)

at com.sun.java.help.search.Indexer.main(Indexer.java:76)

Any ideas what could be the problem?

Thanks,

Dewang

[659 byte] By [dewangs] at [2007-9-26 15:35:19]
# 1
knock knock.
dewangs at 2007-7-2 18:26:17 > top of Java-index,Desktop,Developing for the Desktop...
# 2

Sounds like your mission something in your classpath.

I use the jhindexer shell script (bat file for 9x/NT). Make sure that you have the full path to jhwrap correct in that script.

Also in the same script, make sure you have the jhall.jar and swingall.jar on the same line.

For example I have:

CP=${MYHOME}/jhall.jar:${MYHOME}/swingall.jar

${WRAPPER}/jhwrap "$CP" com.sun.java.help.search.Indexer $@

Make sure all your paths are correct.

stricch at 2007-7-2 18:26:17 > top of Java-index,Desktop,Developing for the Desktop...
# 3

I'm getting a similar problem. jhindexer works fine. I am trying to use the underlying java class (indexer) in order to cross platform. I am getting the same problem. The command I use is

java -cp jhall.jar;swingall.jar com.sun.java.help.search.Indexer html

"jhindexer html" works fine

This command creates the JavaHelpSearch directory but then gets the IllegalAccessError above.

vhikida at 2007-7-2 18:26:17 > top of Java-index,Desktop,Developing for the Desktop...