初始化ComThread线程出错!Could not initialize class com.jacob.com.ComThread

本地环境运行没问题,jar包部署到服务器上运行在服务器日志中有报错:

初始化ComThread线程出错!Could not initialize class com.jacob.com.ComThread
初始化ComThread线程出错!null

方案一 :https://sourceforge.net/p/jacob-project/discussion/375946/thread/55b7893c/

大概意思是说少放了jacob 的一个配置文件,我把 JacobVersion.properties 加到 jar 包 里就可以了。

目录结构如下:
/META-INF/JacobVersion.properties
/com/jacob/com/ComThread.class

 


posted @ 2019-03-28 10:12  pubby  阅读(4822)  评论(0编辑  收藏  举报