libpcsclite1 is not found by sun-java-6 (jaunty)

Bug #378294 reported by Martin Wimmer
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Java cannot find the libpcsclite.so . It searches for it only in /usr/lib:/usr/lib64:/usr/local/lib:/usr/local/lib64

Unfortunately the library lies under /lib in jaunty.

This problem can be worked around by running
`sudo ln -s /lib/libpcsclite.so.1 /usr/local/lib64/libpcsclite.so` under amd64 or
`sudo ln -s /lib/libpcsclite.so.1 /usr/local/lib/libpcsclite.so` under x86

This is actually required for eGovernment applications (like eVoting) to work in Austria, so I think it would be great if this would work out-of-the-box in Ubuntu.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

I guess it would be a better idea to correct/patch java to:
- also search the library in /lib
- search for libpcsclite.so.1 instead of libpcsclite.so (without the .1)

See Debian bug 529339 for the later issue.
http://bugs.debian.org/529339

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

As documented in http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html#SunPCSCProvider the /lib directory is not used.

I reported the problem to SUN and it should be corrected. A workaround is:
" As a workaround for these issues, you can change the system property
sun.security.smartcardio.library to point it to whatever .so file you
want so that you don't have to play with symlinks or copying files around. "

Revision history for this message
Colin Watson (cjwatson) wrote :

If it's looking for libpcsclite.so rather than libpcsclite.so.1, then you simply need to install the libpcsclite-dev package.

In any case, this is a bug in the JVM, not in pcsc-lite, and should be reassigned. Which version of the JVM are you using? The ones shipped in Ubuntu are sun-java5, sun-java6, and openjdk-6.

Revision history for this message
Frank Cornelis (info-frankcornelis) wrote :

I stumbled upon the same issue when trying to use the PC/SC API from within my eID Applet. I had to add the following work-around in my code for Ubuntu:
File libPcscLite = new File("/lib/libpcsclite.so.1");
if (libPcscLite.exists()) {
 System.setProperty("sun.security.smartcardio.library", libPcscLite.getAbsolutePath());
}
It would be nice if the PC/SC layer would work out of the box when using the sun-java6.

Revision history for this message
Ludovic Rousseau (ludovic-rousseau-gmail) wrote :

> It would be nice if the PC/SC layer would work out of the box when using the sun-java6.
It is a bug in the Java JRE, not in pcsc-lite.

I talk to someone at Sun but I don't know if this bug will be corrected one day.
I propose to fix the problem in sun-java-6 instead of using workarounds.

Revision history for this message
Nicolas DERIVE (kalon33) wrote :

The bug seems to be in sun-java6, not pcsc-lite (according to cjwatson and Ludovic Rousseau), reassigning.

affects: pcsc-lite (Ubuntu) → sun-java6 (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sun-java6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

sun-java6 was removed.

Changed in sun-java6 (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.