I am getting an exception and I can't find the reason of it. The exception I get is :
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 does not export sun.security.action to module 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);
}
Any help? Also would like to know is there any other way to export array in Excel document using Java.