Morning @natali
Thanks for reaching out,
Please refer to this announcement SDK Upgrade (Beta): Version 4.0.0 Announcement - Announcements - Fatoora Developer Community for upgrading the JAVA version for SDK,
From the provided error it appears that you are missing some configuration in your environment variables as the beta version is working fine, kindly see the attached Beta_version.png
For any further support, do not hesitate to reach out to our support team via below mail:
SP mail: sp_support@zatca.gov.sa
Thanks,
Ibrahem Daoud.