From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: bug#24327: java does not support swing Date: Mon, 29 Aug 2016 13:21:18 +0800 Message-ID: <87a8fwkv5d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beF2J-00086n-Pa for bug-guix@gnu.org; Mon, 29 Aug 2016 01:23:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beF2E-0001Ng-Ot for bug-guix@gnu.org; Mon, 29 Aug 2016 01:23:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beF2E-0001Nc-La for bug-guix@gnu.org; Mon, 29 Aug 2016 01:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1beF2E-00016g-Gu for bug-guix@gnu.org; Mon, 29 Aug 2016 01:23:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beF1j-0007io-Jr for bug-guix@gnu.org; Mon, 29 Aug 2016 01:22:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beF1f-0001Ki-Ia for bug-guix@gnu.org; Mon, 29 Aug 2016 01:22:31 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:36383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beF1f-0001Ke-D4 for bug-guix@gnu.org; Mon, 29 Aug 2016 01:22:27 -0400 Received: by mail-pf0-f174.google.com with SMTP id h186so47960152pfg.3 for ; Sun, 28 Aug 2016 22:22:26 -0700 (PDT) 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: 24327@debbugs.gnu.org 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? Thanks, Alex