How To Fix - Couldn’t find per display information Error in Java Applications
By Angsuman Chakraborty, Gaea News NetworkMonday, June 23, 2008
While running some Java applications (like Thinreader) you may see this strange looking error - Couldn’t find per display information. You may find this error when running such applications in JDK 6 or later. Let’s find out more about it and how you can easily fix it.
First of all the error doesn’t originate in core Java libraries but in JDIC libraries used by the application.
The JDesktop Integration Components (JDIC) project aims to make Java technology-based applications (”Java applications”) first-class citizens of current desktop platforms without sacrificing platform independence. Its mission is to enable seamless desktop/Java integration.
JDIC provides Java applications with access to functionalities and facilities provided by the native desktop. It consists of a collection of Java packages and tools. JDIC supports a variety of features such as embedding the native browser, launching the desktop applications, creating tray icons on the desktop, registering file type associations, creating JNLP installer packages, etc.
The application in question is using an old version of JDIC libraries which causes this problem. You can fix it by downloading the latest JDIC libraries (jar files and so files or dll files as appropriate) and using them to replace your current version. For example to fix Thinreader (a simple RSS aggregator), I replaced the following files with the latest version:
lib/jdic.jar
lib/linux/x86/libjdic.so
lib/linux/x86/libtray.so
Note: .so files are shared objects used in Linux like dll files in Windows. It goes without saying that we are Linux based. However the instructions above will also work on Windows.
Tags: JDIC