Post

Replies

Boosts

Views

Activity

Reply to Guidance on Java JRE Usage for PST Parsing in Mac OS Application– Code Signing & App Store Compliance
Thanks @DTS Engineer and @Etresoft But the exact problem here is something else relating to security issues. I did try the approach of moving it into the PlugIns directory and still App store expected me to codesign all the dylibs and the binaries with entitlements. The problem arises when I had to add the com.apple.security.app-sandbox entitlement to the java executable to avoid thie error. ITMS-90296: App sandbox not enabled - The following executables must include the 'com.apple.security.app-sandbox' entitlement with a Boolean value of true in the entitlements property list: [[com.app.sample.appstore.pkg/Payload/Sample.app/Contents/PlugIns/Java.runtime/Contents/custom-jre-universal/bin/java]] Refer to App Sandbox page at https://developer.apple.com/documentation/security/app_sandbox for more information on sandboxing your app. So when i added an entitlement file and codesigned the java executable inside my PlugIns directory and after which when i run the java executable I get this error, which was working fine until i codesigned it with entitlements (containing com.apple.security.app-sandbox as true). Exception in thread "main" java.lang.InternalError: Error loading java.security file at java.base/java.security.Security.initialize(Unknown Source) at java.base/java.security.Security.lambda$static$0(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.security.Security.<clinit>(Unknown Source) at java.base/sun.security.util.SecurityProperties.getOverridableProperty(Unknown Source) at java.base/sun.security.util.SecurityProperties.privilegedGetOverridable(Unknown Source) at java.base/sun.security.util.SecurityProperties.includedInExceptions(Unknown Source) at java.base/sun.security.util.SecurityProperties.<clinit>(Unknown Source) at java.base/sun.security.util.FilePermCompat.<clinit>(Unknown Source) at java.base/java.security.AccessControlContext.<init>(Unknown Source) at java.base/java.security.AccessController.createWrapper(Unknown Source) Any help relating to how to resolve this entitlements issue will be of great help. Also @Etresoft we already had the license for Aspose Email for Java which is why we decided to go with this instead of the .NET to avoid buing a newer license. Regards, Maaz Hussain
Jun ’25