---
title: "Java Deployment Ruleset: Complete Creation Guide"
description: "Create and deploy Java deployment rulesets like a pro. Streamline your Java environment management."
canonical: "https://adamtheautomator.com/java-deployment-ruleset/"
---

# Java Deployment Ruleset: Complete Creation Guide

> Create and deploy Java deployment rulesets like a pro. Streamline your Java environment management.

Source: https://adamtheautomator.com/java-deployment-ruleset/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Java Deployment Ruleset: Complete Creation Guide](https://adamtheautomator.com/wp-content/uploads/2019/06/5d238ae5c824b514689ea58f.jpg)

# Java Deployment Ruleset: Complete Creation Guide

[![](https://secure.gravatar.com/avatar/d0b9d42e21e5622713f8b693aa5c0f9244d5f7dd200ed29b8398f52dee5de337?s=192&d=mm&r=g)Adam Bertram](https://adamtheautomator.com/author/adam-bertram/)30 June 20191 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Java](/tag/java/)

Struggling how create a Java deployment ruleset? You’ve come to the right place. Here’s a step-by-step tutorial on how it’s done.

This particular task almost put me in the grave. The request was simple. Silence Java security prompts for a couple of web applications. Sounds easy enough, right?

Hell no it wasn’t!

..at least not when attempting to sign the ruleset with an [Active Directory](https://adamtheautomator.com/tag/active-directory/) Certificate Services certificate. After a _ton_ of Googling around and trial and error I gave up and decided to just go with the self-signed cert. I know this isn’t the most secure way to do this but I’ve given up and once I did, it worked like a charm.

If you do want to try to use an ADCS certificate, a blog post entitled [Deploying a Java DeploymentRuleSet.Jar using a Active Directory Certificate Services cert](https://sysjam.wordpress.com/2015/02/19/deploying-a-java-deploymentruleset-jar-using-a-active-directory-certificate-services-cert/) that I found may help you.

Here’s the steps I took to create and deploy a Java Deployment RuleSet to my clients.

1.  [Create your _ruleset.xml_ file](https://blogs.oracle.com/java-platform-group/entry/introducing_deployment_rule_sets).
2.  Download and install the [JDK](https://www.oracle.com/java/technologies/javase/upgrade.html) on your admin workstation.
3.  Copy _ruleset.xml_ to the JDK install folder _C:\\Program Files\\Java\\jdk1.X.X\_X\\bin_
4.  Change to the JDK install folder’s bin directory.
5.  Run the command: `jar -cvf DeploymentRuleSet.jar ruleset.xml`
6.  Run the command: `keytool.exe -genkey -alias SelfSigned -keystore "SelfSigned.jks" -keyalg RSA -keysize 2048 -startdate "2000/01/01 00:00:00" -validity 18262`  
    answering the prompts, type “yes” to trust the cert and use the same password as the keystore password.
7.  Run the command: `keytool.exe -export -file "SelfSigned.cer" -alias SelfSigned -keystore "SelfSigned.jks"`
8.  Run the command: `jarsigner.exe -keystore "SelfSigned.jks" -signedjar "DeploymentRuleSet.jar" DeploymentRuleSet.jar SelfSigned`
9.  Copy the _DeploymentRuleSet.jar_ file to your clients’ _C:\\Windows\\Sun\\Java\\Deployment folder_.
10.  Copy the _C:\\Users\\<THE USER YOU’RE LOGGED IN WITH>\\AppData\\LocalLow\\Sun\\Java\\Deployment\\security\\trusted.certs_ file to your clients’ _C:\\Windows\\Sun\\Java\\Deployment folder_.
11.  Give _Authenticated Users_ _Modify_ rights on your clients’ _C:\\Windows\\Sun\\Java\\Deployment folder_.
12.  Copy the _SelfSigned.cert_ [certificate](https://adamtheautomator.com/x509-certificates/ "certificate") to your client somewhere.
13.  Import the _SelfSigned.cert_ certificate in your client’s _Trusted Root Certification Authorities_ certificate store.
14.  Verify you have an active deployment rule set in the Java Control Panel on your client like this screenshot.

![Viewing a Java Active Deployment Rule set](https://adamtheautomator.com/content/images/2019/07/creating-java-deployment-ruleset-self-signed---activedeploymentruleset.png)

Viewing a Java Active Deployment Rule set

15\. Try your web site again and confirm the security prompt is gone!

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fjava-deployment-ruleset%2F&text=Java%20Deployment%20Ruleset%3A%20Complete%20Creation%20Guide)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fjava-deployment-ruleset%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fjava-deployment-ruleset%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2023/08/java-on-raspberry-pi.jpg)

### [Learn How to Install Java on Raspberry Pi](/java-on-raspberry-pi/)

Learn how to install and get started with the ins and outs of Java on Raspberry Pi in this ATA Learning tutorial!

![](https://adamtheautomator.com/wp-content/uploads/2022/11/install-java-on-mac.jpg)

### [How to Install Java on Mac](/install-java-on-mac/)

Learn how to install Java on Mac securely and safely with either OpenJDK or Oracle Java to run all of your Java applications!

![](https://adamtheautomator.com/wp-content/uploads/2022/10/How-to-Install-Groovy-on-Linux-and-Windows-Step-by-Step.jpg)

### [How to Install Groovy on Linux and Windows \[Step-by-Step\]](/install-groovy/)

Learn the ins-and-outs of how to install Groovy on both Linux and Windows systems in this step-by-step tutorial by ATA Learning!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
