i have a doubt regarding to use the poi in java. i have some example programs. but i don't know the required packages for poi. what my question is org.apache.poi.hssf.usermodel package is in which version of java. is tomcat software is required to run the poi programs? if not, in which version of java i can run the poi programs?
i need a immediate reply. please help me. thank you.
As previously meantioned Tomcat is not required. I am not sure the minimum version of Java required. If you click around the site a little you should find that out.
The system I am working with uses java 1.4.1
Look around carefully for others that have already built classes that do what you need before you start coding. In my case I was able to find some code that got me more than half way there (a power point content extraction).
Hope this helps,
posted 14 years ago
hai friends thank u for your immediate reply. i have got an idea to execute poi while i was browsing regarding that. but i have another problem with that. the steps to work with poi are
1.download "poi-bin-2.5.1-final-20040804.zip" file 2.extract it to the folder say c:\poi-bin-2.5.1-final-20040804 3. and then simply add to the classpath.. "c:\poi-bin-2.5.1-final-20040804\poi-2.5.1-final-20040804.jar"
the problem is, after the classpath is set, the 'java'(command to run the program) is not executed. it gives the exception as Exception in thread "main" java.lang.NoClassDefFoundError: but the program is compiled successfully. i need immediate help. please help me. thank you bye narayanan
In order to be of help to you, we will need a bit more information. What class are you trying to run? Please use code tags when posting code and also writing that your request for help is urgent doesn't mean that people will respond to you quicker. Answers to well structured questions tend to get answered before people spend time trying to answer vague questions.
if i don't set any classpath, i get error message that is, there is no HSSFWorkbook,HsSFSheet,etc. if i set the classpath for the poi, there is no error at the time of compilation. but i get an exception at run time. the exception is Exception in thread "main" java.lang.NoClassDefFoundError: Test
i need an immediate reply. please help me. thank you bye narayanan
posted 14 years ago
Ensure that your classpath includes the current directory and the directory that the class Test is in. Adding a fullstop to your classpath should do the trick