Skip to main content

[JAVAHELP] jhindexer IllegalAccessError

3 replies [Last post]
Anonymous

Hello All,

Here is what I run across when I try to create a Help Database using the
jhindexer.bat.
I have my JAVAHELP_HOME=C:\projects\jh2.0 and the folder Hello contains all
the .xml,map and .hs files
A folder "JavaHelpSearch" does get created in the current directory but I
get the following exception thrown

C:\projects\jh2.0\demos\myhelp\help>C:\projects\jh2.0\javahelp\bin\jhindexer
H
ello
Exception in thread "main" java.lang.IllegalAccessError: tried to access
class c
om.sun.java.help.search.ConceptLocation from class
com.sun.java.help.search.Defa
ultIndexBuilder
at
com.sun.java.help.search.DefaultIndexBuilder.(DefaultIndexBuild
er.java:23)
at com.sun.java.help.search.Indexer.compile(Indexer.java:191)
at com.sun.java.help.search.Indexer.main(Indexer.java:76)

I get a similar error when I try to use the "jhelpdev" opensource project

Am I missing some thing ?

Many thanks,
Sree

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Sree Pradhip wrote:
> Hello All,
>
> Here is what I run across when I try to create a Help Database using the
> jhindexer.bat.
> I have my JAVAHELP_HOME=C:\projects\jh2.0 and the folder Hello contains all
> the .xml,map and .hs files
> A folder "JavaHelpSearch" does get created in the current directory but I
> get the following exception thrown
>
> C:\projects\jh2.0\demos\myhelp\help>C:\projects\jh2.0\javahelp\bin\jhindexer
> H
> ello
> Exception in thread "main" java.lang.IllegalAccessError: tried to access
> class c
> om.sun.java.help.search.ConceptLocation from class
> com.sun.java.help.search.Defa
> ultIndexBuilder
> at
> com.sun.java.help.search.DefaultIndexBuilder.(DefaultIndexBuild
> er.java:23)
> at com.sun.java.help.search.Indexer.compile(Indexer.java:191)
> at com.sun.java.help.search.Indexer.main(Indexer.java:76)
>

Strange error. I suspect this has something to do with a classpath
problem or the possibility of putting a jh*.jar file in a jre/lib
directory that is inconsistent with V2.0.

> I get a similar error when I try to use the "jhelpdev" opensource project

Never heard of this one. Where is it?

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

coshx
Offline
Joined: 2004-04-14
Points: 0

I just ran across this same error, and it was because I put only the jh.jar file in $JAVA_HOME/jre/lib/ext but did not put jsearch.jar there as well. Another solution is to just put the jhall.jar file in the aforementioned directory.

--Ben

> Sree Pradhip wrote:
> > Hello All,
> >
> > Here is what I run across when I try to create a
> Help Database using the
> > jhindexer.bat.
> > I have my JAVAHELP_HOME=C:\projects\jh2.0 and the
> folder Hello contains all
> > the .xml,map and .hs files
> > A folder "JavaHelpSearch" does get created in the
> current directory but I
> > get the following exception thrown
> >
> >
> C:\projects\jh2.0\demos\myhelp\help>C:\projects\jh2.0\
> javahelp\bin\jhindexer
> > H
> > ello
> > Exception in thread "main"
> java.lang.IllegalAccessError: tried to access
> > class c
> > om.sun.java.help.search.ConceptLocation from class
> > com.sun.java.help.search.Defa
> > ultIndexBuilder
> > at
> >
> com.sun.java.help.search.DefaultIndexBuilder.(De
> faultIndexBuild
> > er.java:23)
> > at
> com.sun.java.help.search.Indexer.compile(Indexer.java:
> 191)
> > at
> com.sun.java.help.search.Indexer.main(Indexer.java:76)
> >
>
> Strange error. I suspect this has something to do
> with a classpath
> problem or the possibility of putting a jh*.jar file
> in a jre/lib
> directory that is inconsistent with V2.0.
>
>
> > I get a similar error when I try to use the
> "jhelpdev" opensource project
>
> Never heard of this one. Where is it?
>
> Binky
>
> ******************************************************
> **************************
>
> You may leave the list at any time by sending message
> with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to
> LISTSERV@JAVA.SUN.COM. Archives
> are available at
> http://archives.java.sun.com/archives/javahelp-interes
> t.html.
> Submit bug reports at
> http://java.sun.com/cgi-bin/bugreport.cgi.

Roger Brinkley

javahelp1@JAVADESKTOP.ORG wrote:

> I just ran across this same error, and it was because I put only the
> jh.jar file in $JAVA_HOME/jre/lib/ext but did not put jsearch.jar
> there as well. Another solution is to just put the jhall.jar file in
> the aforementioned directory.

By default you should put jhall.jar in the jre/lib/ext directory. This
is what we do in the Solaris package installation and the Linux RPM
installation as well. Essentially jhall.jar is jh.jar + jsearch.jar.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.