Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-help-dev] parser issues

Eclipse help uses parser from org.apache.xerces plug-in.  You can read its
version from a plug-in, as I do not know which build of Eclipse you are
using.

Assuming you are using API driven stand-alone (as opposed to command line)
help, if you put a parser on a classpath that is available to Eclipse there
will be a collision between classes you contribute and those in a plug-in.
It is even if the version of the parser is the same, and the actual JAR is
the same.  There is plans to change Xerces usage by Eclipse for 3.0  See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=37696

Possible solutions for your problem:
1.  Place Xerces on bootpath, not classpath.  This will ensure that it will
be used, and not the one in a plug-in.
2.  Create a clean class loader that does not have access to Xerces, only
to help.jar and launch help within this class loader.
3.  Use command line launching of help.

Konrad Kolosowski
Eclipse Help System



|---------+----------------------------------->
|         |           Lisa H                  |
|         |           Dierkhising/Rochester/IB|
|         |           M@IBMUS                 |
|         |           Sent by:                |
|         |           platform-help-dev-admin@|
|         |           eclipse.org             |
|         |                                   |
|         |                                   |
|         |           08/06/2003 05:05 PM     |
|         |           Please respond to       |
|         |           platform-help-dev       |
|---------+----------------------------------->
  >---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                                             |
  |       To:       platform-help-dev@xxxxxxxxxxx                                                                                               |
  |       cc:                                                                                                                                   |
  |       Subject:  [platform-help-dev] parser issues                                                                                           |
  |                                                                                                                                             |
  |                                                                                                                                             |
  >---------------------------------------------------------------------------------------------------------------------------------------------|



We use Eclipse help in stand-alone mode launching it from our application.
We have a need to put our own parser on the classpath for our use outside
of the Eclipse help system.

Anytime I put a parser on the classpath, I get the error "Problem occured
initializing Eclipse"
This occurs even if I use the parser from the Eclipse plugin
'org.apache.xerces'.
If I remove all parsers from the classpath, then Eclipse help initializes
fine and displays help appropriately so I am confident that my plugin is
structured correctly.

What parser is being used by the Eclipse help system (not the one in
org.apache.xerces)?
Is there anyway to allow the help system to use its own parser even though
we have a different parser on the classpath for our use?

Thanks in advance for any assistance!

-Lisa

_______________________________________________
platform-help-dev mailing list
platform-help-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-help-dev





Back to the top