other-errors.dita 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <reference id="troubleshooting" xml:lang="en-US">
  5. <title>Other error messages</title>
  6. <shortdesc>In addition to error messages that DITA Open Toolkit generates, you might also encounter error messages
  7. generated by Java or other tools.</shortdesc>
  8. <prolog>
  9. <metadata>
  10. <keywords>
  11. <indexterm>logging</indexterm>
  12. <indexterm>Java<indexterm>logging</indexterm></indexterm>
  13. <indexterm>Java<indexterm>out of memory</indexterm></indexterm>
  14. <indexterm>Java<indexterm>UnsupportedClassVersionError</indexterm></indexterm>
  15. <indexterm>Java<indexterm>tools.jar</indexterm></indexterm>
  16. <indexterm>tools.jar</indexterm>
  17. <indexterm>XSLT<indexterm>errors</indexterm></indexterm>
  18. <indexterm>preprocessing<indexterm>XSLT</indexterm></indexterm>
  19. <indexterm>debugging<indexterm>generate-debug-attributes</indexterm></indexterm>
  20. <indexterm>memory</indexterm>
  21. </keywords>
  22. </metadata>
  23. </prolog>
  24. <refbody>
  25. <section id="out-of-memory-error">
  26. <title>Out of Memory error</title>
  27. <p>In some cases, you might receive a message stating the build has failed due to an <msgph>Out of Memory</msgph>
  28. error. Try the following approaches to resolve the problem:</p>
  29. <ol>
  30. <li>Increase the memory available to Java.</li>
  31. <li>Reduce memory consumption by setting the <option>generate-debug-attributes</option> option to
  32. <codeph>false</codeph>. This option is set in the <filepath>lib/configuration.properties</filepath> file.
  33. This will disable debug attribute generation (used to trace DITA-OT error messages back to source files) and
  34. will reduce memory consumption.</li>
  35. <li>Set <codeph>dita.preprocess.reloadstylesheet</codeph> Ant property to <codeph>true</codeph>. This will allow
  36. the XSLT processor to release memory when converting multiple files.</li>
  37. <li>Run the transformation again.</li>
  38. </ol>
  39. </section>
  40. <section id="unsupported-class-version-error">
  41. <title>UnsupportedClassVersionError</title>
  42. <p>If you receive a <codeph>java.lang.UnsupportedClassVersionError</codeph> error message with an
  43. <codeph>Unsupported major.minor version</codeph> and a list of Java classes, make sure your system meets the
  44. minimum Java requirements as listed in the <cite>Release Notes</cite> and installation instructions.</p>
  45. </section>
  46. <section id="tools-jar-error">
  47. <title>Unable to locate tools.jar</title>
  48. <p>If a Java Runtime Environment (JRE) is used when building output via Ant, the <msgph>Unable to locate
  49. tools.jar</msgph> error may appear. This message is safe to ignore, since DITA-OT does not rely on any of the
  50. functions in this library. If a Java Development Kit (JDK) is also installed, setting the
  51. <varname>JAVA_HOME</varname> environment variable to the location of the JDK will prevent this message from
  52. appearing.</p>
  53. </section>
  54. </refbody>
  55. </reference>