2

I need to create installer using install4j with the bundled JRE inside. When user installs it he gets app.exe without need to install JRE/JDK. But there is bouncy castle lib which requires JCE. After installation I can manually add JCE to jre bundle, but I need installer does it by itself.

How to create JRE/JDK bundle with JCE using install4j? Is it possible?

enter image description here

Maksym
  • 2,650
  • 3
  • 32
  • 50

1 Answers1

3

Seeing the version you're bundling (Java 8.152) you might be able to get by with just calling Security.setProperty("crypto.policy", "unlimited"); in your main class code. And if you can use a more recent version, JCE may be enabled by default.

Source: The answers and comments at Why are the JCE Unlimited Strength not included by default?

Dhruv Murarka
  • 376
  • 5
  • 12