Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291964 - choosing java policy files (new eselect module?)
Summary: choosing java policy files (new eselect module?)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Java team
Depends on:
Blocks: eselect-java-tracker
  Show dependency tree
Reported: 2009-11-05 11:48 UTC by Marcin Mirosław
Modified: 2017-05-10 22:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2009-11-05 11:48:56 UTC
Installing e.g. dev-java/sun-jdk i'm getting with it limited strength policy files (/opt/sun-jdk- and /opt/sun-jdk- ). My application needs unlimited S.P.F. so i emerge dev-java/sun-jce-bin. This ebuild installs unlimited S.P.F. these files:

When i'm deploying jar i'm getting message "... java.lang.RuntimeException: AES 256 bit encryption NOT supported, make sure the unlimited strength policy files are installed."
The problem is in path where java is looking for policy file, it's looking in own home dir (/opt/sun-jdk- not in /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce .
My work around was make symlinks from /opt/sun-jdk.../... to /opt/sun-jce.../...
Then applications deploys correctly.
Maybe eselect could manage policy files? E.g changing symlinks target to preferable policy files?

Reproducible: Always
Comment 1 James Le Cuirot gentoo-dev 2017-05-10 22:47:03 UTC
This is no longer an issue as it is controlled with the jce USE flag against the JDK/JRE package itself.