I am having this problem with reading a .doc
or .docx
file in Java:
java.lang.NoClassDefFoundError: org/apache/poi/hwpf/HWPFDocument
I don't understand why this is happening and would appreciate any help getting rid of this error.
I am having this problem with reading a .doc
or .docx
file in Java:
java.lang.NoClassDefFoundError: org/apache/poi/hwpf/HWPFDocument
I don't understand why this is happening and would appreciate any help getting rid of this error.
Well, that sounds like you haven't put the relevant Apache POI jar file(s) into the classpath you're using at execution time. Without more information, that's about all we can say.
For example, from the command line, on Windows, you might want to run:
java -cp .;poi-whatever.jar foo.bar.Test
(Replace the jar file name and your entry point name appropriately.)