我正在开发由Scott Klement编写的程序“使用POI使用RPG创建Spreedsheet”。我能够创建“ .xlx” Spreedsheet,但是在调用调用“ XSSFWorkbook”的过程时遇到了以下提到的问题。
[enter code here
Message ID。 。 。 。 。 。 :RNX0301严重性。 。 。 。 。 。 。 :50enter code here
消息类型。 。 。 。 。 :诊断enter code here
发送日期。 。 。 。 。 。 :发送时间。 。 。 。 。 。 :
enter code here
Message。 。 。 。 :调用Java方法时收到Java异常。enter code here
原因。 。 。 。 。 :程序POI36 / XLCRTDEMO中的RPG程序XLCRTDEMOenter code here
收到Java异常“ java.lang.NoClassDefFoundError:enter code here
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorkbook(初始化为“何时”enter code here
调用方法“enter code here
“ org.apache.poi.xssf.usermodel.XSSFWorkbook”。
ADDENVVAR ENVVAR(CLASSPATH1) +
VALUE('/home/Jar/poi-contrib-3.6-20091214.jar+
:/home/Jar/commons-codec-1.10.jar+
:/home/Jar/commons-logging-1.1.jar+
:/home/Jar/curvesapi-1.03.jar+
:/home/Jar/geronimo-stax-api_1.0_spec-1.0.jar+
:/home/Jar/junit-3.8.1.jar+
:/home/Jar/log4j-1.2.13.jar+
:/home/Jar/dom4j-1.6.1.jar+
:/home/Jar/jsr173_1.0_api-RELEASE731.jar+
:/home/Jar/xbean-2.1.0.jar+
:/home/Jar/poi-ooxml-3.6-20091214.jar+
:/home/Jar/poi-ooxml-schemas-3.6-20091214.jar+
:/home/Jar/poi-scratchpad-3.6-20091214.jar+
:/home/Jar/poi-examples-3.6-20091214.jar+
:/home/Jar/xmlbeans-2.5.0.jar+
:/home/Jar/poi-3.6-20091214.jar') +
LEVEL(*JOB) +
REPLACE(*YES)
是CLASSPATH,不是CLASSPATH1