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. Reda Gable

    Hello, I was just taking a look at your site and submitted this message via your feedback form. The “contact us” page on your site sends you these messages to your email account which is the reason you are reading through my message at this moment right? That’s the most important achievement with any type of advertising, getting people to actually READ your message and I did that just now with you! If you have an ad message you would like to promote to thousands of websites via their contact forms in the US or anywhere in the world let me know, I can even focus on specific niches and my prices are super reasonable. Write a reply here: harry2947har@gmail.com

Leave a comment

 Comment Form