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

Bug #378294 reported by Martin Wimmer on 2009-05-19
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)

Bug Description

Java cannot find the . 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/ /usr/local/lib64/` under amd64 or
`sudo ln -s /lib/ /usr/local/lib/` 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.

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

See Debian bug 529339 for the later issue.

As documented in 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 to point it to whatever .so file you
want so that you don't have to play with symlinks or copying files around. "

Colin Watson (cjwatson) wrote :

If it's looking for rather than, 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.

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/");
if (libPcscLite.exists()) {
 System.setProperty("", libPcscLite.getAbsolutePath());
It would be nice if the PC/SC layer would work out of the box when using the sun-java6.

> 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.

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)
Launchpad Janitor (janitor) wrote :

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

Changed in sun-java6 (Ubuntu):
status: New → Confirmed
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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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