java does not support swing

  • Done
  • quality assurance status badge
Details
2 participants
  • Alex Vong
  • 宋文武
Owner
unassigned
Submitted by
Alex Vong
Severity
normal

Debbugs page

A
A
Alex Vong wrote on 28 Aug 2016 22:21
(address . bug-guix@gnu.org)
87a8fwkv5d.fsf@gmail.com
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
宋
宋文武 wrote on 10 Sep 2016 19:13
control message for bug #24327
(address . control@debbugs.gnu.org)
20160911021317.A782D200FAE@mail.openmailbox.org
tags 24327 fixed
close 24327 cab1760de
宋
宋文武 wrote on 10 Sep 2016 19:14
Re: bug#24327: java does not support swing
(name . Alex Vong)(address . alexvong1995@gmail.com)(address . 24327-done@debbugs.gnu.org)
87fup7chd6.fsf@member.fsf.org
Alex Vong <alexvong1995@gmail.com> writes:

Toggle quote (22 lines)
> 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.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 24327@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 24327
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch