I am writing a program in java to convert xlsx to csv file. I have 4 to 5 jar files which I set permanently in classpath using this-
vim ~/.bashrc
export CLASSPATH="/path/to/file1":"/path/to/file2":"${CLASSPATH}"
when I created the jar file of my program then again it stopped working and I was getting error
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/poi/xssf/usermodel/XSSFWorkbook
Again it seems issue related to classpath. Now how to solve this ? Below are the jar files which I exported in classpath-
commons-logging-1.1.3.jar
dom4j-1.6.1.jar
json-lib-2.4-jdk15.jar
jxl.jar
poi-3.10-FINAL-20140208.jar
poi-excelant-3.10-FINAL-20140208.jar
poi-ooxml-3.10-FINAL-20140208.jar
poi-ooxml-schemas-3.10-FINAL-20140208.jar
poi-scratchpad-3.10-FINAL-20140208.jar
xbean-2.3.0.jar