Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Aug 02, 2024 3:36 pm

I am currently using Java 21 and I am getting the following error:
Code: Select all
{
  "message": "java.lang.IllegalAccessError: class com.spire.xls.packages.sprRFA (in unnamed module @0x7ae0a9ec) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x7ae0a9ec",
  "status": "Internal Server Error"
}


Is the spre.xls.free (version 5.1) compatible with Java 21?

Thanks.

jchaarK2
 
Posts: 2
Joined: Fri Jun 17, 2022 6:07 pm

Mon Aug 05, 2024 8:59 am

Hi,

Thank you for your message.
I'm sorry to inform you that due to infrequent updates and maintenance for the free version, the current free version of Spire.XLS indeed does not support JDK 21. However, I have tested our latest commercial version 14.7.7, which is compatible with JDK 21. It is recommended that you use the latest version for testing. And we're willing to provide an one-month trial license to help you to evaluate it better. Please click here to apply for it. If you still encounter any issues, please provide us with the test files and test code for further investigation.

Version 14.7.7 Downloading: https://www.e-iceblue.com/Download/xls-for-java.html

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 353
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.XLS

cron