我想将一个小型Java应用程序编译为Windows可执行文件。 应用程序非常小,只有一个主类,但它使用Apache POI。 当我编译它时,一切正常,只要我将POI Jar放入类路径参数中。 但是当谈到链接时,GCJ无法解析POI包中的类的引用。 消息都是这样的: undefined reference tp ‘org::apache::poi:hssf:usermodel:HSSFWorkbook::class$’ 为了链接我的申请,我该怎么办?
说我的lib文件夹中有jcifs-1.3.14.jar,我有一个从库中导入并使用类的类: import jcifs.smb.*; NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(domain, user, pass); SmbFile file = new SmbFile(path, auth); // do some operations with the file here 当以这种方式使用库时,它被认为是:A)静态链接或B)动态链接或C)其他什么?