Skip to content
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

JCE Unlimited Strength should be put under resources/oracle_jre/jre/lib/security/ in case of using Oracle JRE #196

Closed
devtdeng opened this issue Jun 12, 2015 · 5 comments

Comments

@devtdeng
Copy link

In case os using Oracle JRE, JCE Unlimited Strength local_policy.jar should be added to resources/oracle_jre/jre/lib/security/ instead of resources/oracle_jre/lib/security.

Please correct documentation at
https://github.com/cloudfoundry/java-buildpack/blob/master/docs/jre-oracle_jre.md#additional-resources

@nebhale
Copy link
Contributor

nebhale commented Jun 12, 2015

Just to double check I've just enumerated the list of files in the Oracle JRE. I think you'll find that there is no jre/ directory in it.

@nebhale nebhale closed this as completed Jun 12, 2015
@dmikusa
Copy link
Contributor

dmikusa commented Jun 12, 2015

I think the confusion is that if you download the "server jre", which appears to be structured like a JDK, the directory path is different.

Can we make a note of that in the docs?

$ tar tzf server-jre-8u45-linux-x64.gz | grep security
jdk1.8.0_45/jre/lib/security/
jdk1.8.0_45/jre/lib/security/cacerts
jdk1.8.0_45/jre/lib/security/trusted.libraries
jdk1.8.0_45/jre/lib/security/java.policy
jdk1.8.0_45/jre/lib/security/US_export_policy.jar
jdk1.8.0_45/jre/lib/security/blacklist
jdk1.8.0_45/jre/lib/security/blacklisted.certs
jdk1.8.0_45/jre/lib/security/java.security
jdk1.8.0_45/jre/lib/security/local_policy.jar

@devtdeng
Copy link
Author

@nebhale We need to make a note in docs. If follow current docs at [1], it won't work for Oracle JRE because it require local_policy.jar to be added under resources/oracle_jre/jre/lib/security/ instead of resources/oracle_jre/lib/security.

[1] https://github.com/cloudfoundry/java-buildpack/blob/master/docs/jre-oracle_jre.md#additional-resources

@cgfrost
Copy link
Contributor

cgfrost commented Jun 29, 2015

Could you submit a pull request with the changed docs please. To make sure we get it right.

Thanks.

@nebhale
Copy link
Contributor

nebhale commented Jul 7, 2015

@devtdeng Actually, resources/oracle_jre/jre/lib/security is only required if you're using Server JRE, not the normal JRE (note this makes no difference if it is OpenJDK or Oracle). If you'd like to submit a PR with a clarification that keeps the current wording intact but points out that the Server JRE will require a different location, please do.

cgfrost added a commit that referenced this issue Sep 15, 2015
Document local_policy.jar location for 'server jre'

See: #196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants