Has anyone tried the Apache POI framework 3.17 version? Reuben, have you tried it? I see that you are using a 3.10 version on github. I want it to run with Java 7 so I downloaded the latest available which is 3.17.
I've just started trying to get it to work.
I have a simple program. I'm just trying to get the 4GL to find the classes.
IMPORT JAVA org.apache.poi.xssf.usermodel.XSSFWorkbook
MAIN
DISPLAY "Hello world"
END MAIN
When I compile, I get this:
IMPORT JAVA org.apache.poi.xssf.usermodel.XSSFWorkbook
| The symbol 'org.apache.poi.xssf.usermodel.XSSFWorkbook' does not represent a valid variable type.
| See error number -6622.
MAIN
DISPLAY "Hello world"
END MAIN
My CLASSPATH:
.:/users/genero/3.10.15/dev/lib/fgl.jar:/users/apache_poi/poi-3.17/poi-3.17.jar:/users/apache_poi/poi-3.17/poi-ooxml-3.17.jar:/users/apache_poi/poi-3.17/poi-ooxml-schemas-3.17.jar:/users/apache_poi/poi-3.17/ooxml-lib/xmlbeans-2.6.0.jar
Now I can compile this java program just fine:
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
class Hello {
public static void main
(String[] args
) { }
}
And I'm sure I have the right jar file:
$ jar tf poi-ooxml-3.17.jar |grep XSSFWorkbook
Picked up JAVA_TOOL_OPTIONS: -Xss2m
org/apache/poi/poifs/crypt/temp/SXSSFWorkbookWithCustomZipEntrySource.class
org/apache/poi/xssf/streaming/SXSSFWorkbook$SheetIterator.class
org/apache/poi/xssf/streaming/SXSSFWorkbook.class
org/apache/poi/xssf/usermodel/XSSFWorkbook$1.class
org/apache/poi/xssf/usermodel/XSSFWorkbook$SheetIterator.class
org/apache/poi/xssf/usermodel/XSSFWorkbook.class
org/apache/poi/xssf/usermodel/XSSFWorkbookType.class
If I use the HSSFWorkbook, it compiles fine.
We are using Centos 7.3. Also, we had to set export JAVA_TOOL_OPTIONS=-Xss2m as there is a problem in Centos 7.3.
Are there only certain versions that work?
Thanks!
Candy