other-errors.dita 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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
  13. <indexterm>logging</indexterm></indexterm>
  14. <indexterm>Java
  15. <indexterm>out of memory</indexterm></indexterm>
  16. <indexterm>Java
  17. <indexterm>UnsupportedClassVersionError</indexterm></indexterm>
  18. <indexterm>Java
  19. <indexterm>tools.jar</indexterm></indexterm>
  20. <indexterm>tools.jar</indexterm>
  21. <indexterm>XSLT
  22. <indexterm>errors</indexterm></indexterm>
  23. <indexterm>preprocessing
  24. <indexterm>XSLT</indexterm></indexterm>
  25. <indexterm>debugging
  26. <indexterm>generate-debug-attributes</indexterm></indexterm>
  27. <indexterm>memory</indexterm>
  28. </keywords>
  29. </metadata>
  30. </prolog>
  31. <refbody>
  32. <section id="out-of-memory-error">
  33. <title>Out of Memory error</title>
  34. <p>In some cases, you might receive a message stating the build has failed due to an <msgph>Out of Memory</msgph>
  35. error. Try the following approaches to resolve the problem:</p>
  36. <ol>
  37. <li>Increase the memory available to Java.</li>
  38. <li>Reduce memory consumption by setting the <option>generate-debug-attributes</option> option to
  39. <codeph>false</codeph>. This option is set in the <filepath>lib/configuration.properties</filepath> file.
  40. This will disable debug attribute generation (used to trace DITA-OT error messages back to source files) and
  41. will reduce memory consumption.</li>
  42. <li>Set <codeph>dita.preprocess.reloadstylesheet</codeph> Ant property to <codeph>true</codeph>. This will allow
  43. the XSLT processor to release memory when converting multiple files.</li>
  44. <li>Run the transformation again.</li>
  45. </ol>
  46. </section>
  47. <section id="unsupported-class-version-error">
  48. <title>UnsupportedClassVersionError</title>
  49. <p>If you receive a <codeph>java.lang.UnsupportedClassVersionError</codeph> error message with an
  50. <codeph>Unsupported major.minor version</codeph> and a list of Java classes, make sure your system meets the
  51. minimum Java requirements as listed in the <cite>Release Notes</cite> and installation instructions.</p>
  52. </section>
  53. <section id="tools-jar-error">
  54. <title>Unable to locate tools.jar</title>
  55. <p>If a Java Runtime Environment (JRE) is used when building output via Ant, the <msgph>Unable to locate
  56. tools.jar</msgph> error may appear. This message is safe to ignore, since DITA-OT does not rely on any of the
  57. functions in this library. If a Java Development Kit (JDK) is also installed, setting the
  58. <varname>JAVA_HOME</varname> environment variable to the location of the JDK will prevent this message from
  59. appearing.</p>
  60. </section>
  61. </refbody>
  62. </reference>