0

I'm think of increasing the maximum encryption key length by downloading security policy files from Oracle. They need to be placed in $JRE_HOME/lib/security to take effect. My question is, would this "tweak" be overwritten when upgrading Java to a major version, and maybe even from a minor version to another minor version?

Best regards Programmer Trond

Programmer Trond
  • 303
  • 2
  • 15

2 Answers2

1

Ideally, you would develop a repeatable process (such as a script) that sets up your environment.

  • Install JRE/JDK
  • Post configure JRE/JDK using script

That will simplify moving your application between computers and give you some confidence in your environment.

This may seem like overkill for your particular situation, but it's one of those good development habits that will scale for you.

Steve C
  • 18,876
  • 5
  • 34
  • 37
0

Different major versions have different directories so adding JRE 8 will not touch JRE 7.

What happens exactly depends on your installer. If you use the tar.gz package it will create a new directory for every build, if you use RPM it will remove the old versions and add new ones. You need to check how RPM behaves if you modify a file, but I would assume it could be overwritten.

Peter Lawrey
  • 525,659
  • 79
  • 751
  • 1,130
  • Thanks. As raising the encryption key size is the goal here, I might go for an external encryption library, though. BouncyCastle or something. – Programmer Trond May 27 '14 at 08:01