poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From konrad....@dt-shop.com
Subject Problems with HWPF
Date Wed, 14 Jan 2004 08:37:49 GMT
Hello all,

I just compiled all classes from the scratchpad of the HWPF project
successfully. When I call the HWPFDocument class, I get the following
error. Can you tell me what is wrong ? The classpath seems to be set
correctly.

java HWPFDocument /excel/Wordtest1.doc /excel/Wordtest2.doc
java.lang.NoClassDefFoundError
      java/lang/Throwable.<init>()V+4 (Throwable.java:73)
      java/lang/Error.<init>()V+1 (Error.java:32)
      java/lang/NoClassDefFoundError.<init>()V+1
(NoClassDefFoundError.java:28)

java/lang/ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;

82 (ClassLoader.
java:494)

java/net/URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;

196 (URLClassLoader.java:282)

java/net/URLClassLoader.access$300(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;

1 (URLC
lassLoader.java:59)
      java/net/URLClassLoader$ClassFinder.run()Ljava/lang/Object;+42
(URLClassLoader.java:596)

java/net/URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+16
(URLClassLoader.java:195)
      java/lang/ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;
+41 (ClassLoader.java:300)

sun/misc/Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;

33 (Launcher.java:281)
      java/lang/ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;
+1 (ClassLoader.java:256)

java/lang/ClassLoader.loadClassInternal(Ljava/lang/String;)Ljava/lang/Class;

1 (ClassLoader.java:316)

I also combined them into a jar-file, but with the same result.
Can anybody provide a working jar-file containing all necessary classes ?
My eMail-address is konrad.mai@dt-shop.com.
Can anybody give me a sample how to call the HWPFDocument class correctly.

Thanks,

Konrad Mai


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


Mime
View raw message