unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: iyzsong@member.fsf.org (宋文武)
To: Alex Vong <alexvong1995@gmail.com>
Cc: 24327-done@debbugs.gnu.org
Subject: bug#24327: java does not support swing
Date: Sun, 11 Sep 2016 10:14:45 +0800	[thread overview]
Message-ID: <87fup7chd6.fsf@member.fsf.org> (raw)
In-Reply-To: <87a8fwkv5d.fsf@gmail.com> (Alex Vong's message of "Mon, 29 Aug 2016 13:21:18 +0800")

Alex Vong <alexvong1995@gmail.com> 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
> <https://clojure.org/guides/getting_started>.
>
> 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.

      reply	other threads:[~2016-09-11  2:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29  5:21 bug#24327: java does not support swing Alex Vong
2016-09-11  2:14 ` 宋文武 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fup7chd6.fsf@member.fsf.org \
    --to=iyzsong@member.fsf.org \
    --cc=24327-done@debbugs.gnu.org \
    --cc=alexvong1995@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).