【发布时间】:2013-09-18 12:40:29
【问题描述】:
我正在尝试使用 SBT 编译我的项目,但我收到此错误并且无法弄清楚原因:
YoBre$ sbt compile
[info] Loading project definition from /opt/virtualenvs/venv1/scala/name/project
[info] Set current project to name (in build file:/opt/virtualenvs/venv1/scala/name/)
[info] Compiling 4 Scala sources and 5 Java sources to /opt/virtualenvs/venv1/scala/name/target/scala-2.10/classes...
[error] error while loading CTP, class file '/opt/virtualenvs/venv1/scala/name/lib_managed/jars/org.apache.poi/poi-ooxml-schemas/poi-ooxml-schemas-3.9.jar(org/openxmlformats/schemas/wordprocessingml/x2006/main/CTP.class)' is broken
[error] (class java.lang.NullPointerException/null)
[error] error while loading CTTbl, class file '/opt/virtualenvs/venv1/scala/name/lib_managed/jars/org.apache.poi/poi-ooxml-schemas/poi-ooxml-schemas-3.9.jar(org/openxmlformats/schemas/wordprocessingml/x2006/main/CTTbl.class)' is broken
[error] (class java.lang.NullPointerException/null)
[error] error while loading CTTc, class file '/opt/virtualenvs/venv1/scala/name/lib_managed/jars/org.apache.poi/poi-ooxml-schemas/poi-ooxml-schemas-3.9.jar(org/openxmlformats/schemas/wordprocessingml/x2006/main/CTTc.class)' is broken
[error] (class java.lang.NullPointerException/null)
[error] three errors found
[error] (compile:compile) Compilation failed
[error] Total time: 6 s, completed 18-set-2013 12.31.36
这个项目包含代码 Java 和 Scala。当我将一个与之前用 java 编写的 word 文档拆分相关的功能翻译成 Scala 时发生了错误。该错误实际上与 jar 文件库 org.apache.poi 相关。
我试图记录,但我没有找到类似的案例。
有什么想法吗?
谢谢
【问题讨论】:
标签: java scala apache-poi sbt scala-2.10