Results 1 to 6 of 6
- 09-02-2008, 10:06 AM #1
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
java.lang.NoClassDefFoundError in Eclipse at runtime
Hi All,
I am relatively new to Java.
I am running this program in Eclipse 3.2.
I am calling a method executeOperation() in ExtractBomOperation class by instantiating its object from ExtractBomDialog class and then calling that method. However at executeOperation() at the line
"wb = new HSSFWorkbook();" I am getting a run time error that in Eclipse console shows as : "java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook" . I have already included poi.jar file in Eclipse.
I am sending the ExtractBomDialog and ExtractBomOperation class codes in this attachment.
Not sure why I am getting the error.Any help would be great.
Thanks in advance.
- 09-02-2008, 05:33 PM #2
How do you run your app ? As "Java application"or using server ?
- 09-03-2008, 06:15 AM #3
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
As a java application
- 09-03-2008, 03:35 PM #4
Do you know which jar file the above class is defined in?org/apache/poi/hssf/usermodel/HSSFWorkbook
Is that jarfile on the classpath?
- 09-03-2008, 04:40 PM #5
Member
- Join Date
- Sep 2008
- Posts
- 4
- Rep Power
- 0
The above class is defined in poi.jar.
I added that jar by going to Project(Right CLick)--->Properties--->Java Build Path--->Libraries--->Add External Jars.
Is there anything else I need to do?
How do I check that the jarfile is on classpath in ECLIPSE ?
- 09-03-2008, 05:29 PM #6
Similar Threads
-
java.lang.NoClassDefFoundError
By noobie in forum Java AppletsReplies: 5Last Post: 04-22-2009, 02:35 AM -
java.lang.NoClassDefFoundError: com.ibm.ws.orb.GlobalORBFactory
By hawkeye in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 06-16-2008, 10:56 AM -
java.lang.NoClassDefFoundError
By bizmut in forum EclipseReplies: 3Last Post: 06-15-2008, 12:54 AM -
java.lang.NoClassDefFoundError
By J_a_y in forum New To JavaReplies: 2Last Post: 08-07-2007, 11:51 AM -
java.lang.NoClassDefFoundError
By fred in forum Advanced JavaReplies: 3Last Post: 08-01-2007, 05:00 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks