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.

Thu Sep 26, 2024 9:18 am

HI, I want to export an excel file but get an error while initializing the Workbook class.I am using java version 11 and spire.xls.free version 5.1.0

Workbook workbook = new Workbook();

"java.lang.IllegalAccessError: class com.spire.xls.packages.sprRFA (in unnamed module @0x3bd40a57) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x3bd40a57"

hoang1001
 
Posts: 1
Joined: Thu Sep 26, 2024 9:06 am

Fri Sep 27, 2024 2:54 am

Hello,

Thanks for your inquiry. I tested it locally in the same environment as you, but everything turned out fine. Regarding the error issue, you can investigate whether your project is only using our Spire.xls product, and check if there are any conflicts in the JDK versions in your project.

Meanwhile, we don't provide technical or any other support to the users of the free versions. And we do not regularly update and maintain the free version. So, we suggest that you use our commercial version(Spire.XLS for Java Version:14.9.8) for testing, it includes more fixes and optimizations. If you still have any question, please feel free to write back.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 283
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.XLS