java does not support swing

DoneSubmitted by Alex Vong.
Details
2 participants
  • Alex Vong
  • 宋文武
Owner
unassigned
Severity
normal
A
A
Alex Vong wrote on 29 Aug 2016 07:21
(address . bug-guix@gnu.org)
87a8fwkv5d.fsf@gmail.com
Hi,
Our current java does not support swing. To reproduce, first installjava 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 fromhttps://clojure.org/guides/getting_started.
In contrast, if we replace ~/.guix-profile/bin/java by /usr/bin/java inthe command, we do not get a nullpointerexception (my base distro isdebian testing). So there should be a problem in our java build. Anyideas?
Thanks,Alex
宋文武 wrote on 11 Sep 2016 04:13
control message for bug #24327
(address . control@debbugs.gnu.org)
20160911021317.A782D200FAE@mail.openmailbox.org
tags 24327 fixedclose 24327 cab1760de
宋文武 wrote on 11 Sep 2016 04: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 email to 24327@debbugs.gnu.org