From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) Subject: bug#24327: java does not support swing Date: Sun, 11 Sep 2016 10:14:45 +0800 Message-ID: <87fup7chd6.fsf@member.fsf.org> References: <87a8fwkv5d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biuIT-0005qJ-Nm for bug-guix@gnu.org; Sat, 10 Sep 2016 22:15:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biuIQ-0001Gq-I3 for bug-guix@gnu.org; Sat, 10 Sep 2016 22:15:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biuIQ-0001Gj-G1 for bug-guix@gnu.org; Sat, 10 Sep 2016 22:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1biuIQ-0002Wl-C4 for bug-guix@gnu.org; Sat, 10 Sep 2016 22:15:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87a8fwkv5d.fsf@gmail.com> (Alex Vong's message of "Mon, 29 Aug 2016 13:21:18 +0800") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Alex Vong Cc: 24327-done@debbugs.gnu.org Alex Vong writes: > Hi, > > Our current java does not support swing. To reproduce, first install > java and clojure. Then start the clojure repl by running: > $ ~/.guix-profile/bin/java -cp ~/.guix-profile/share/java/clojure-1.8.0.jar clojure.main > > Then try the repl by typing: > => (+ 1 2 3) > 6 > > Now run: > => (javax.swing.JOptionPane/showMessageDialog nil "Hello World") > NullPointerException sun.awt.FontConfiguration.getVersion (FontConfiguration.java:1264) > > Note that the above test case is taken from > . > > In contrast, if we replace ~/.guix-profile/bin/java by /usr/bin/java in > the command, we do not get a nullpointerexception (my base distro is > debian testing). So there should be a problem in our java build. Any > ideas? Yeah, openjdk-8 loads fontconfig via dlopen. Fixed in commit cab1760de.