How to pack Java Cryptography Extension (JCE) to JDK RPM

Date July 22nd, 2016 Author Vitaly Agapov

I don’t have problem. I am part of problem.

Daniel Keyes «The Minds of Billy Milligan»

jce

Let's imagine you have hundreds of hosts where you automatically install or update HotSpot JDK from the RPM-repository. For example, by RPM dependencies while installing or updating some another software. You maintain your repository by yourself and you'd like to have JDK and JCE in one RPM package.

Then this tiny article will help you.

Step 1. Download JCE from Oracle.com to ~/UnlimitedJCEPolicy

for Oracle JDK 8: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

for Oracle JDK 7: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

Step 2. Install rpmrebuild

Step 3. Do the job

rpmrebuild --package --change-files "cp ~/UnlimitedJCEPolicyJDK8/*jar ~/.tmp/rpmrebuild.*/work/root/usr/java/*/jre/lib/security/" jdk-<version>-linux-x64.rpm
mv ~/rpmbuild/RPMS/x86_64/jdk<version>.x86_64.rpm <somerepo>

Step 4. Grab the beer

Tags:
Category: Linux | 1 Comment »

Comments

Один комментарий на “How to pack Java Cryptography Extension (JCE) to JDK RPM”

  1. Deidre Whetsel

    Were you aware that notes like these that come through your website’s contact page can actually be an effective method to get more sales for your website? How do we do this? Simple, we create an ad for your site and we blast it out to thousands contact pages on any site in any business niche or location you like. Do ads like these work well? Of course they do! You’re reading this now aren’t you? The best part is, this doesn’t cost more than a hundred bucks a month! Want to find out more? write an email to: ErnestLilliana57358@gmail.com

Leave a comment

 Comment Form