![](/img/trans.png)
[英]Caused by: java.lang.IllegalAccessError: superclass access check class apache (in module x) that cannot access another apache class (in mod y)
[英]Caused by: java.lang.IllegalAccessError: class com.spire.xls.packages.sprRFA (in module spire.xls.free) cannot access class
我遇到異常,但找不到原因。 我得到的例外是:
Caused by: java.lang.IllegalAccessError: class com.spire.xls.packages.sprRFA (in module spire.xls.free) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base不會將 sun.security.action 導出到模塊 spire.xls.free
@FXML
public void OnCreateFile(ActionEvent actionEvent) {
String po1 = Word.getText();
String[] ss1 = po1.split(" ");
String po2 = Output.getText();
String[] ss2 = po2.split(" ");
Workbook workbook = new Workbook();
Worksheet sheet = workbook.getWorksheets().get(0);
sheet.insertArray(ss1, 0, 0, true);
sheet.insertArray(ss2, 0, 1, true);
workbook.saveToFile("dictionary.xlsx", ExcelVersion.Version2016);
}
有什么幫助嗎? 還想知道是否有任何其他方法可以使用 Java 導出 Excel 文檔中的數組。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.