What environment are you on. If it is linux or some other unix
environment then you need to make sure you have Read permission for
your all of your jars in your classpath.
I had this trouble last week when switching users. Everything worked
for user "foo" but not when I started using "bar"
Regards,
Dave
On Mar 6, 2008, at 5:43 AM, teena21 wrote:
I m new in hwpf and i want to read a word document for this i am
using POI
APIs HWPF
my code is this
HWPFDocument doc = new HWPFDocument (new FileInputStream (args[0]));
Range r = doc.getRange();
System.out.println("Example you supplied:");
System.out.println("-------------- -------");
for (int x = 0; x < r.numSections(); x++)
{
Section s = r.getSection(x);
for (int y = 0; y < s.numParagraphs(); y++)
{
Paragraph p = s.getParagraph(y);
for (int z = 0; z < p.numCharacterRuns(); z++)
{
CharacterRun run = p.getCharacterRun(z);
String text = run.text();
System.out.print(text);
}
System.out.println();
}
}
but this code gives an error at run time
java.lang.NoClassDefFoundError: org/apache/poi/hpsf/WritingNotSupp
ortedException
plz help me to remove this problem
i had import all HWPF APIs
--
View this message in context: http://www.nabble.com/Error-in-HWPF-
tp15871381p15871381.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]