-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging JRE 11 - missing security policy #124
Comments
SetupBuilder does not differentiate between individual JRE/SDK files. All files in the specified directory are actually packed.
|
Thank you for your reply - sorry for the delay in responding. To answer your questions: 1. How you setup the bundled the bundled Java VM? Here is the relevant extract from my
2. Are you sure that your original Java VM has the missing file? Yes - here is the output from
Here is a screenshot showing the contents of the JDK 11.0.17 Home directory, which includes the missing file: 3. Has the file different file access permission that SetupBuilder can't read it? No - I've checked permissions and all the files / directories in the JDK home directory are world readable / searchable. 4. Is the file java.security.properties the only difference between the source Java VM and installed Java VM? No - most of the Java home directory has not been copied. Here is a screen shot that shows the content of the application bundle: |
Looking at a previous version of my application, which was bunded with JDK 8, it looks as though SetupBuilder does a partial copy of the contents of the My JDK 11 folder does not contain a Unfortunately, the missing security policy is contained in For JDK 8, the security policy is contained in |
Can you please try and add the following entries:
|
Apparently Java 11 is no longer distributed with a JRE:
https://stackoverflow.com/questions/53733312/where-is-jre-11 So I may have to find or build my own JRE... |
For that, check out the Temurin project. They have JREs and JDKs for every platform. We're using their VMs successfully, but we do rebuild the JRE from the JDK. |
Thanks @gamma - adding the |
I notice that |
I am the Windows developer of the plugin. I don't see the point of this include and exclude of files of the JDK, as the operating system does not add magic folders/files to the JDK directory. If you want a reduced Java runtime environment, it is better to reduce the Java VM to the required files and point to the directory where it is located. Typically, the custom JDK is downloaded from a dependency repository such as Maven or Ivy. All developer and build nodes then include the same JDK in the setup. |
Hello,
I configured
SetupBuilder
to include JRE 11.0.17 with my application, but my application failed to initialise:Caused by: java.lang.SecurityException: Can't read cryptographic policy directory: unlimited at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:326)
I suspect this is because the bundled JRE doesn't include the
conf/security/policy
folder, or becausejava.security.properties
is not set correctly:https://stackoverflow.com/questions/58182231/openjdk-11-error-can-not-initialize-cryptographic-mechanism
Please advise.
Thanks.
Robert
The text was updated successfully, but these errors were encountered: