-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
javax.smartcardio
in zulu broken due to hardcoded libpcsclite.so path
#46840
Comments
maybe use patchelf here? |
|
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
I found a workaround which works for my system, set the environment.sessionVariables = {
_JAVA_OPTIONS = "-Dsun.security.smartcardio.library=${lib.getLib pkgs.pcsclite}/lib/libpcsclite.so";
}; Each time I run a java application, the JVM reports
and the library is able to interface PCSC correctly. See also: https://stackoverflow.com/questions/12376257/accessing-javax-smartcardio-from-linux-64-bits |
Issue description
Trying to use
javax.smartcardio
withzulu
fails which seems to be caused by the fact, that the paths to the pcsclite shared-objects are hardcoded.Steps to reproduce
configuration.nix
andnixos-rebuild switch
:DemoBug.java
:Java-Snippet based on example code from JDK-8026326
Result:
Dissecting
zulu-8.21.0.1
showed, that the paths/usr/lib64/libpcsclite.so
and/usr/local/lib64/libpcsclite.so
are defined in/nix/store/h50vw4hcsq2jk843lzf20cdri8ffa8g7-zulu-8.21.0.1/jre/lib/rt.jar
, which again containssun/security/smartcardio/PlatformPCSC.class
where those paths are coming from:Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
The text was updated successfully, but these errors were encountered: