Summary: | Standalone Help working 1.0 and broken in 2.0 and beyond | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | wendy henson <wlhenson> |
Component: | User Assistance | Assignee: | Platform-Help-Inbox <platform-help-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | ||
Version: | 2.0.2 | ||
Target Milestone: | 2.1 M3 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
wendy henson
2003-01-16 15:33:38 EST
Are there any problems reported in the .log file? The log file is written in the %temp%\help_system\.metadata directory. Does your larger application sets URL Stream Handler Factory [is calling java.net.URL.setURLStreamHandlerFactory(URLStreamHandlerFactory fac)]? Is your application using at least jdk version 1.3.1_06 ? Does your application use any libraries that are also existent within Eclipse? Another words, is there a chance for a collision between classes within Eclipse and classes in your application? I've figured out what is causing the problem, and a workaround, at least for my application. We use the XML parser libraries in our applications as well. However, if you include any references to xerces.jar or xmlParserAPIs.jar in your classpath - either your own, or the ones eclipse ships with, e.g., eclipse\plugins\org.apache.xerces_4.0.7 \xercesImpl.jar;eclipse\plugins\org.apache.xerces_4.0.7\xmlParserAPIs.jar, then you get the behavior I described - the eclipse viewer will not start. A workaround for the time being is to unjar the aforementioned jar files and re- jar them with your own application's jar file. This works with both the application and the eclipse engine. I do think this should be fixed, however, as it was not broken like this in 1.x. Wendy, Try including (either Eclipse's or your app's) xerces libraries in java boot path instead of the classpath for your application. For example: set JAVA_OPTS=-Xbootclasspath/a:d:\eclipse\plugins\org.apache.xerces_4.0.7 \xercesImpl.jar;d:\eclipse\plugins\org.apache.xerces_4.0.7\xmlParserAPIs.jar If this works, it eliminates the need to repackage files. Let us know the results here, please. You have solved the problem when using Eclipse 2.0.2. In 2.1 this has been fixed as Help launches Eclipse as a separate process to avoid such conflicts, so I will mark the bug as resolved. Thanks for the info. The following works with either our jar files or eclipse's. -Xbootclasspath/a:xercesImpl.jar;xmlParserAPIs.jar Infocenter architecture since 2.1 M3 build does not suffer from this problem. Changing target milestone to M3 |